phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbcheckbox.cpp
changeset 45 6b911d05207e
parent 27 2f8f8080a020
--- a/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbcheckbox.cpp	Fri Jun 04 10:19:18 2010 +0100
+++ b/phonesettings/cpphonesettingsplugins/tsrc/mocks/mock_hbcheckbox.cpp	Wed Jun 23 18:12:20 2010 +0300
@@ -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
 
 
 // -----------------------------------------------------------------------------