]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiSpellchecker.h
Fix the tab ordering of GuiDocument components.
[lyx.git] / src / frontends / qt4 / GuiSpellchecker.h
index 3445326b33ed4bced4a3728f41ddd3ce61dcb6d4..5851e8ceda5e31cd9e3c05df50727546f2ca4135 100644 (file)
@@ -16,6 +16,7 @@
 #define GUISPELLCHECKER_H
 
 #include "DockView.h"
+#include <QTabWidget>
 
 class QListWidgetItem;
 
@@ -25,21 +26,17 @@ class docstring_list;
 
 namespace frontend {
 
-#if QT_VERSION >= 0x040600
 class SpellcheckerWidget : public QTabWidget
-#else
-class SpellcheckerWidget : public QWidget
-#endif
 {
        Q_OBJECT
 
 public:
-       SpellcheckerWidget(GuiView * gv, QWidget * parent = 0);
+       SpellcheckerWidget(GuiView * gv, DockView * dv, QWidget * parent = 0);
        ~SpellcheckerWidget();
        ///
        void updateView();
        ///
-       bool initialiseParams(std::string const & data);
+       bool initialiseParams(std::string const &);
 
 private Q_SLOTS:
        void on_findNextPB_clicked();
@@ -74,7 +71,7 @@ public:
 private:
        ///{
        void updateView();
-       bool initialiseParams(std::string const &) { return true; }
+       bool initialiseParams(std::string const & data) { return widget_->initialiseParams(data); }
        void clearParams() {}
        void dispatchParams() {}
        bool isBufferDependent() const { return false; }