src/hbinput/inputwidgets/hbinputmodeindicator.cpp
changeset 6 c3690ec91ef8
parent 2 06ff229162e9
child 30 80e4d18b72f5
--- a/src/hbinput/inputwidgets/hbinputmodeindicator.cpp	Fri Jun 11 13:58:22 2010 +0300
+++ b/src/hbinput/inputwidgets/hbinputmodeindicator.cpp	Wed Jun 23 18:33:25 2010 +0300
@@ -22,13 +22,13 @@
 ** Nokia at developer.feedback@nokia.com.
 **
 ****************************************************************************/
+#include <hbinputmodeindicator.h>
 
 #include <QPainter>
 #include <QPointer>
 #include <hbicon.h>
 #include <hbinputmethod.h>
 #include <hbinputeditorinterface.h>
-#include <hbinputmodeindicator.h>
 #include <hbinputfocusobject.h>
 #include <hbinputsettingproxy.h>
 
@@ -36,19 +36,19 @@
 
 class HbInputModeIndicatorPrivate
 {
-public:   
+public:
     HbInputModeIndicatorPrivate(HbInputButton *button);
     ~HbInputModeIndicatorPrivate();
 
     void updatePrediction();
 
-public:  
+public:
     HbInputButton *mButtonItem;
     QPointer<HbInputFocusObject> mFocusObject;
 };
 
 HbInputModeIndicatorPrivate::HbInputModeIndicatorPrivate(HbInputButton *button)
- : mButtonItem(button), mFocusObject(0)
+    : mButtonItem(button), mFocusObject(0)
 {
     if (HbInputMethod::activeInputMethod()) {
         mFocusObject = HbInputMethod::activeInputMethod()->focusObject();
@@ -72,7 +72,7 @@
     if (HbInputSettingProxy::instance()->predictiveInputStatusForActiveKeyboard() &&
         mFocusObject && mFocusObject->editorInterface().isPredictionAllowed()) {
         icon = HbIcon(predictionOnIcon);
-     } else {
+    } else {
         icon = HbIcon(predictionOffIcon);
     }
     icon.setColor(color);
@@ -99,7 +99,7 @@
 {
     mPrivate = new HbInputModeIndicatorPrivate(button);
     if (mPrivate->mFocusObject) {
-        connect (&mPrivate->mFocusObject->editorInterface(), SIGNAL(modified()), this, SLOT(updateIndicator()));
+        connect(&mPrivate->mFocusObject->editorInterface(), SIGNAL(modified()), this, SLOT(updateIndicator()));
     }
     connect(HbInputSettingProxy::instance(), SIGNAL(predictiveInputStateChanged(HbKeyboardSettingFlags, bool)),
             this, SLOT(updatePredictionStatus(HbKeyboardSettingFlags, bool)));
@@ -123,7 +123,7 @@
         if (HbInputMethod::activeInputMethod()) {
             mPrivate->mFocusObject = HbInputMethod::activeInputMethod()->focusObject();
             if (mPrivate->mFocusObject) {
-                connect( &mPrivate->mFocusObject->editorInterface(), SIGNAL(modified()), this, SLOT(updateIndicator()));
+                connect(&mPrivate->mFocusObject->editorInterface(), SIGNAL(modified()), this, SLOT(updateIndicator()));
             } else {
                 return;
             }