]> git.lyx.org Git - features.git/commitdiff
at least compile with old Qt versions
authorPeter Kümmel <syntheticpp@gmx.net>
Wed, 6 Jan 2010 21:25:43 +0000 (21:25 +0000)
committerPeter Kümmel <syntheticpp@gmx.net>
Wed, 6 Jan 2010 21:25:43 +0000 (21:25 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32812 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiProgressView.cpp

index f69258f9cd38d5d8549a2fef2077c56f648bf8d4..091cbdc2f5c2745458a02072cb2ea135a1d2c9d1 100644 (file)
@@ -66,6 +66,7 @@ GuiProgressView::GuiProgressView(GuiView & parent, Qt::DockWidgetArea area,
        widget_ = new ProgressViewWidget();
        setWidget(widget_);
 
+#if (QT_VERSION >= 0x040500)
        QFont font(guiApp->typewriterFontName());
        font.setKerning(false);
        font.setFixedPitch(true);
@@ -92,7 +93,8 @@ GuiProgressView::GuiProgressView(GuiView & parent, Qt::DockWidgetArea area,
                connect(box, SIGNAL(stateChanged(int)), this, SLOT(levelChanged()));
        }
        widget_->settingsLayout->activate();
-
+#endif
+       
        GuiProgress * progress =
                dynamic_cast<GuiProgress *>(ProgressInterface::instance());
 
@@ -205,7 +207,11 @@ void GuiProgressView::restoreSession()
 
 void GuiProgressView::showEvent(QShowEvent*)
 {
+#if (QT_VERSION >= 0x040500)
        ProgressInterface::instance()->lyxerrConnect();
+#else
+       hide();
+#endif
 }