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