src/hbplugins/inputmethods/touchinput/virtual12key.cpp
changeset 7 923ff622b8b9
parent 6 c3690ec91ef8
child 21 4633027730f5
child 34 ed14f46c0e55
--- a/src/hbplugins/inputmethods/touchinput/virtual12key.cpp	Wed Jun 23 18:33:25 2010 +0300
+++ b/src/hbplugins/inputmethods/touchinput/virtual12key.cpp	Tue Jul 06 14:36:53 2010 +0300
@@ -51,9 +51,6 @@
 #include "hbinputprediction12keyhandler.h"
 #include "hbinputnumeric12keyhandler.h"
 
-const int HbSmileyNumberOfRows = 5;
-const int HbSmileyNumberOfColumns = 5;
-
 /*!
 \class HbVirtual12Key
 \brief Input method implementations for virtual ITU-T mode in HbInputs framework.
@@ -385,9 +382,7 @@
 */
 void HbVirtual12Key::keypadClosed()
 {
-    if (mOrientationAboutToChange) {
-        mOrientationAboutToChange = false;
-    }
+    mOrientationAboutToChange = false;
 }
 
 /*!
@@ -411,7 +406,14 @@
                 if (mCandidatePopup) {
                     mCandidatePopup->hide();
                 }
-                mVkbHost->minimizeKeypad(!stateChangeInProgress());
+
+                // Close input.
+                QInputContext* ic = qApp->inputContext();
+                if (ic) {
+                    QEvent *closeEvent = new QEvent(QEvent::CloseSoftwareInputPanel);
+                    ic->filterEvent(closeEvent);
+                    delete closeEvent;
+                }
             }
         }
     }
@@ -758,7 +760,7 @@
 void HbVirtual12Key::selectSpecialCharacterTableMode()
 {
     if (mItutKeypad) {
-        mItutKeypad->showSmileyPicker(HbSmileyNumberOfRows, HbSmileyNumberOfColumns);
+        mItutKeypad->showSmileyPicker();
     }
 }