ganeswidgets/src/HgContainer.cpp
changeset 16 0e550c9259fd
parent 13 8bf920201dea
child 19 31a1a9e11046
--- a/ganeswidgets/src/HgContainer.cpp	Wed Aug 18 10:52:49 2010 +0300
+++ b/ganeswidgets/src/HgContainer.cpp	Thu Sep 02 21:36:47 2010 +0300
@@ -456,7 +456,7 @@
 {
     Q_UNUSED(option)
     Q_UNUSED(widget)
-
+    
     // update spring position at paint if needed,
     // this is hack for scrollbar, since dragging it
     // causes also paint events in here
@@ -470,7 +470,6 @@
     QPainter::RenderHints hints = painter->renderHints();
     painter->setRenderHint(QPainter::SmoothPixmapTransform, true);
 
-
     // interpolate spring velocity towards zero, this is done
     // so that spring velocity for rendering doesn't drop directly to
     // zero when dragging starts
@@ -554,6 +553,8 @@
 {
     FUNC_LOG;
 
+    setFlag( QGraphicsItem::ItemClipsToShape, true );    
+    
     mRenderer = createRenderer(scrollDirection);
     mOrientation = scrollDirection;
 
@@ -698,7 +699,7 @@
                 {
                 if (mRenderer->coverflowModeEnabled() || !mSpring.isActive()) {
                     mIgnoreGestureAction = false;
-
+                    
                     if (mHandleLongPress) {
                         if (mRenderer->coverflowModeEnabled()) {
                             // in coverflow mode we react to longtap only if animation is not on and