From e30ca937859706ab5d4dcc052180cc3f793794b8 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Sun, 3 Apr 2011 19:21:28 +0000 Subject: [PATCH] Temporary fix for compile errors on older Qt's (cf #7375) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38235 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiSpellchecker.cpp | 4 ++++ src/frontends/qt4/GuiSpellchecker.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/frontends/qt4/GuiSpellchecker.cpp b/src/frontends/qt4/GuiSpellchecker.cpp index a7147ce562..9ecb5571d2 100644 --- a/src/frontends/qt4/GuiSpellchecker.cpp +++ b/src/frontends/qt4/GuiSpellchecker.cpp @@ -81,7 +81,11 @@ struct SpellcheckerWidget::Private SpellcheckerWidget::SpellcheckerWidget(GuiView * gv, QWidget * parent) +#if QT_VERSION >= 0x040600 : QTabWidget(parent), d(new Private(this)) +#else + : QWidget(parent), d(new Private(this)) +#endif { d->ui.setupUi(this); d->gv_ = gv; diff --git a/src/frontends/qt4/GuiSpellchecker.h b/src/frontends/qt4/GuiSpellchecker.h index 9a42ba687b..3445326b33 100644 --- a/src/frontends/qt4/GuiSpellchecker.h +++ b/src/frontends/qt4/GuiSpellchecker.h @@ -25,7 +25,11 @@ class docstring_list; namespace frontend { +#if QT_VERSION >= 0x040600 class SpellcheckerWidget : public QTabWidget +#else +class SpellcheckerWidget : public QWidget +#endif { Q_OBJECT