src/hbcore/decorators/hbstatusbar.cpp
changeset 3 11d3954df52a
parent 2 06ff229162e9
child 5 627c4a0fd0e7
--- a/src/hbcore/decorators/hbstatusbar.cpp	Fri May 14 16:09:54 2010 +0300
+++ b/src/hbcore/decorators/hbstatusbar.cpp	Thu May 27 13:10:59 2010 +0300
@@ -53,7 +53,6 @@
  */
 
 HbStatusBarPrivate::HbStatusBarPrivate() : 
-    mTimeText(),
     mTimeTextItem(0),
     mSignalIndicator(0),
     mBatteryIndicator(0),
@@ -102,9 +101,17 @@
         q, SIGNAL(activated(const QList<IndicatorClientInfo> &)));
     q->connect(mIndicatorPrivate, SIGNAL(deactivated(const QList<IndicatorClientInfo> &)),
         q, SIGNAL(deactivated(const QList<IndicatorClientInfo> &)));
+    q->connect(mIndicatorPrivate, SIGNAL(allActivated(const QList<IndicatorClientInfo> &)),
+        q, SIGNAL(activated(const QList<IndicatorClientInfo> &)));
 
     mClockTimerId = q->startTimer(clockUpdateDelay);
     mIndicatorPrivate->startListen();
+
+    q->grabGesture(Qt::TapGesture);
+    q->grabGesture(Qt::TapAndHoldGesture);
+    q->grabGesture(Qt::PanGesture);
+    q->grabGesture(Qt::SwipeGesture);
+    q->grabGesture(Qt::PinchGesture);
 }
 
 void HbStatusBarPrivate::init()
@@ -225,6 +232,9 @@
         return;
     }
 
+    d->mNotificationIndicatorGroup->currentViewChanged(view);
+    d->mSettingsIndicatorGroup->currentViewChanged(view);
+
     // only do repolish if properties have changed
     if (d->mPreviousProperties != view->viewFlags()) {
         d->mPreviousProperties = view->viewFlags();
@@ -286,3 +296,13 @@
         }
     }
 }
+
+/*!
+    \reimp
+*/
+void HbStatusBar::gestureEvent(QGestureEvent *event)
+{
+    Q_UNUSED(event);
+    // all gesture events accepted by default
+}
+