at least compile with old Qt versions

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32812 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Peter Kümmel 2010-01-06 21:25:43 +00:00
parent bb0b940529
commit 1ba707e9e7

View 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
}