src/hbcore/decorators/hbtitlebar.cpp
changeset 6 c3690ec91ef8
parent 5 627c4a0fd0e7
child 7 923ff622b8b9
--- a/src/hbcore/decorators/hbtitlebar.cpp	Fri Jun 11 13:58:22 2010 +0300
+++ b/src/hbcore/decorators/hbtitlebar.cpp	Wed Jun 23 18:33:25 2010 +0300
@@ -75,6 +75,8 @@
         mIndicatorButton, SLOT(activate(const QList<IndicatorClientInfo> &)));
     q->connect(q, SIGNAL(deactivated(const QList<IndicatorClientInfo> &)), 
         mIndicatorButton, SLOT(deactivate(const QList<IndicatorClientInfo> &)));
+    q->connect(q, SIGNAL(allActivated(const QList<IndicatorClientInfo> &)), 
+        mIndicatorButton, SLOT(activateAll(const QList<IndicatorClientInfo> &)));
     q->connect(mMainWindow, SIGNAL(currentViewChanged(HbView*)), q, SLOT(currentViewChanged(HbView*)));
     q->connect(mDefaultNavigationAction, SIGNAL(triggered()), qApp, SLOT(quit()));  
 
@@ -387,6 +389,8 @@
         }
     }
 
+    d->mIndicatorButton->currentViewChanged(view);
+
     // only do repolish if titlebar properties have changed
     if (d->mPreviousTitleBarProperties != view->viewFlags()) {
         d->initTitleBarHandle(view);
@@ -463,11 +467,11 @@
     case QEvent::Gesture: {
         QGestureEvent *gestureEvent = static_cast<QGestureEvent*>(event);
         if (HbPanGesture *pan = qobject_cast<HbPanGesture*>(gestureEvent->gesture(Qt::PanGesture))) {
-            if(pan->state() == Qt::GestureUpdated || pan->state() == Qt::GestureFinished) {
+            if (pan->state() == Qt::GestureFinished) {
                 if(pan->sceneDelta().x() < -0) {
                     gestureLeft();
                 }
-                if(pan->sceneDelta().x() > 0) {
+                else if (pan->sceneDelta().x() > 0) {
                     gestureRight();
                 }
                 gestureEvent->accept();