mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
bb0b940529
commit
1ba707e9e7
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user