ganeswidgets/src/hggrid_p.cpp
changeset 17 a10844a9914d
parent 3 c863538fcbb6
--- a/ganeswidgets/src/hggrid_p.cpp	Fri Sep 03 10:22:04 2010 +0300
+++ b/ganeswidgets/src/hggrid_p.cpp	Fri Sep 17 15:55:58 2010 +0300
@@ -40,6 +40,10 @@
     mBufferSize = BUFFERSIZE;
 
     HgWidgetPrivate::init(container);
+    q->setPinchEnabled(false);
+    
+    q->connect(mContainer, SIGNAL(emptySpacePressed()),
+               q, SIGNAL(emptySpacePressed()));    
 }
 
 void HgGridPrivate::orientationChanged(Qt::Orientation orientation)
@@ -50,16 +54,15 @@
     q->repolish();
 }
 
-bool HgGridPrivate::effect3dEnabled() const
+HgGridContainer* HgGridPrivate::container()
 {
-    HgGridContainer *container = qobject_cast<HgGridContainer*>(mContainer);
-    return container->effect3dEnabled();
+    return qobject_cast<HgGridContainer*>(mContainer);
 }
 
-void HgGridPrivate::setEffect3dEnabled(bool effect3dEnabled)
+const HgGridContainer* HgGridPrivate::container() const
 {
-    HgGridContainer *container = qobject_cast<HgGridContainer*>(mContainer);
-    container->setEffect3dEnabled(effect3dEnabled);
+    return qobject_cast<const HgGridContainer*>(mContainer);
 }
 
+
 // EOF