src/hbplugins/inputmethods/common/hbinputspellquerydialog.cpp
changeset 30 80e4d18b72f5
parent 28 b7da29130b0e
--- a/src/hbplugins/inputmethods/common/hbinputspellquerydialog.cpp	Fri Sep 17 08:32:10 2010 +0300
+++ b/src/hbplugins/inputmethods/common/hbinputspellquerydialog.cpp	Mon Oct 04 00:38:12 2010 +0300
@@ -39,9 +39,19 @@
 
 #include "hbinputspellquerydialog.h"
 #include "hbinputmodehandler.h"
+#include "hbinputdialog_p.h"
 
 static const qint16 MAXUDBWORDSIZE = 64;
 
+class HbInputSpellQueryPrivate : public HbInputDialogPrivate
+{
+    Q_DECLARE_PUBLIC(HbInputSpellQuery)
+
+public:
+    HbInputSpellQueryPrivate() {};
+    ~HbInputSpellQueryPrivate() {};
+};
+
 HbInputSpellQuery::HbInputSpellQuery(HbInputMethod *inputMethod, HbInputPredictionHandler *predictionHandler)
  : mOwner(inputMethod), mPredictionHandler(predictionHandler), mPrimaryAction(0) 
 {
@@ -57,6 +67,8 @@
 
 void HbInputSpellQuery::launch(QString editorText)
 {
+    Q_D(HbInputSpellQuery);
+
     if (!mOwner) {
         return;
     }
@@ -94,6 +106,9 @@
         eInt.setLastFocusedState(mSavedState);
         spellEdit->setFocus();
     }
+
+    d->setPriority(focusObject->editorPriority());
+
     // execute the spell dialog
     mSavedFocusObject = focusObject->object();
     mSavedEditorText = editorText;