phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbcheckbox.cpp
branchGCC_SURGE
changeset 51 f39ed5e045e0
parent 45 6b911d05207e
--- a/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbcheckbox.cpp	Tue Jun 15 14:14:38 2010 +0100
+++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbcheckbox.cpp	Thu Jul 22 16:33:21 2010 +0100
@@ -17,7 +17,6 @@
 
 #include <QDebug>
 #include <hbcheckbox.h>
-#include <hbstyleoptioncheckbox.h>
 #include <QGraphicsSceneMouseEvent>
 #include <QGraphicsItem>
 #include <smcmockclassincludes.h>
@@ -30,7 +29,7 @@
 // -----------------------------------------------------------------------------
 //
 HbCheckBox::HbCheckBox( 
-        const QString & text,
+        const QString & /*text*/,
         QGraphicsItem * parent )
     :
     HbAbstractButton( parent )
@@ -138,9 +137,9 @@
 // -----------------------------------------------------------------------------
 //
 void HbCheckBox::initStyleOption( 
-        HbStyleOptionCheckBox * option ) const
+        HbStyleOptionCheckBox *  ) const
     {
-    SMC_MOCK_METHOD1( void, HbStyleOptionCheckBox *, option )
+    
     }
 
 
@@ -186,6 +185,7 @@
     }
 
 
+#ifndef HB_GESTURE_FW
 // -----------------------------------------------------------------------------
 // HbCheckBox::mouseReleaseEvent
 // -----------------------------------------------------------------------------
@@ -206,6 +206,18 @@
     {
     SMC_MOCK_METHOD1( void, QGraphicsSceneMouseEvent *, event )
     }
+#endif
+#ifdef HB_GESTURE_FW
+    // -----------------------------------------------------------------------------
+    // HbCheckBox::gestureEvent
+    // -----------------------------------------------------------------------------
+    //
+    void HbCheckBox::gestureEvent( 
+            QGestureEvent * event )
+        {
+        SMC_MOCK_METHOD1( void, QGestureEvent *, event )
+        }
+#endif
 
 
 // -----------------------------------------------------------------------------