From 1ba707e9e75c294c8c7b1acf4812fed8182072aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20K=C3=BCmmel?= Date: Wed, 6 Jan 2010 21:25:43 +0000 Subject: [PATCH] at least compile with old Qt versions git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32812 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiProgressView.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiProgressView.cpp b/src/frontends/qt4/GuiProgressView.cpp index f69258f9cd..091cbdc2f5 100644 --- a/src/frontends/qt4/GuiProgressView.cpp +++ b/src/frontends/qt4/GuiProgressView.cpp @@ -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(ProgressInterface::instance()); @@ -205,7 +207,11 @@ void GuiProgressView::restoreSession() void GuiProgressView::showEvent(QShowEvent*) { +#if (QT_VERSION >= 0x040500) ProgressInterface::instance()->lyxerrConnect(); +#else + hide(); +#endif }