telutils/dialpad/src/dialpad.cpp
changeset 19 e44a8c097b15
parent 15 d7fc66ccd6fb
child 27 7eb70891911c
--- a/telutils/dialpad/src/dialpad.cpp	Mon May 03 13:01:45 2010 +0300
+++ b/telutils/dialpad/src/dialpad.cpp	Fri May 14 16:24:46 2010 +0300
@@ -33,9 +33,9 @@
 #include "dialpadmultitaphandler.h"
 #include "dialpadbackground.h"
 
-static const QString backgroundGraphics("qtg_fr_input_bg");
+static const QString backgroundGraphics("qtg_fr_input_v_bg");
 static const QString backgroundGraphicsH("qtg_fr_input_h_bg");
-static const QString minimizeIcon("qtg_graf_input_swipe");
+static const QString minimizeIcon("qtg_graf_input_v_swipe");
 static const QString minimizeIconH("qtg_graf_input_h_swipe");
 static const qreal DialpadCloseSwipeDistanceV = 0.25; //compared to total height
 static const qreal DialpadCloseSwipeDistanceH = 0.33; // > button width
@@ -133,6 +133,13 @@
     HbStyleLoader::registerFilePath(":/dialpad.css");
     HbStyleLoader::registerFilePath(":/dialpad_color.css");
     HbStyleLoader::registerFilePath(":/dialpad.dialpadbutton.widgetml");
+
+    // grab gestures so that those are not passed to widgets behind dialpad
+    grabGesture(Qt::TapGesture);
+    grabGesture(Qt::TapAndHoldGesture);
+    grabGesture(Qt::PanGesture);
+    grabGesture(Qt::SwipeGesture);
+    grabGesture(Qt::PinchGesture);
 }
 
 Dialpad::~Dialpad()
@@ -197,6 +204,8 @@
 
 void Dialpad::openDialpad()
 {
+    mKeypad->resetButtons();
+    
     if (mIsOpen) {
         return;
     }