calendarui/views/dayview/src/calendayitemview.cpp
changeset 68 a5a1242fd2e8
parent 58 ef813d54df51
child 77 b0711afde476
equal deleted inserted replaced
58:ef813d54df51 68:a5a1242fd2e8
    16 */
    16 */
    17 
    17 
    18 //System includes
    18 //System includes
    19 #include <QGesture>
    19 #include <QGesture>
    20 #include <QGraphicsLinearLayout>
    20 #include <QGraphicsLinearLayout>
    21 #include <hbabstractviewitem.h>
    21 #include <HbAbstractViewItem>
    22 #include <hbinstance.h>
    22 #include <HbInstance>
    23 #include <hbaction.h>
    23 #include <HbAction>
    24 
    24 
    25 //User includes
    25 //User includes
    26 #include "calendayitemview.h"
    26 #include "calendayitemview.h"
    27 #include "calendayutils.h"
    27 #include "calendayutils.h"
    28 #include "calendaycontainer.h"
    28 #include "calendaycontainer.h"
    52     }
    52     }
    53     
    53     
    54     setScrollDirections(Qt::Vertical);
    54     setScrollDirections(Qt::Vertical);
    55     setScrollingStyle(HbScrollArea::PanWithFollowOn);
    55     setScrollingStyle(HbScrollArea::PanWithFollowOn);
    56     setVerticalScrollBarPolicy(HbScrollArea::ScrollBarAlwaysOff);
    56     setVerticalScrollBarPolicy(HbScrollArea::ScrollBarAlwaysOff);
    57     
       
    58     grabGesture(Qt::PanGesture);
       
    59     ungrabGesture(Qt::SwipeGesture);
       
    60     
    57     
    61     //TODO: KG: Animate item pressed?! HbAbstractItemView::TouchDown
    58     //TODO: KG: Animate item pressed?! HbAbstractItemView::TouchDown
    62     setEnabledAnimations( HbAbstractItemView::None );
    59     setEnabledAnimations( HbAbstractItemView::None );
    63     
    60     
    64     // Get the width of content and fix its size
    61     // Get the width of content and fix its size