equal
deleted
inserted
replaced
48 : HbWidget(parent),mWidget(0) |
48 : HbWidget(parent),mWidget(0) |
49 |
49 |
50 { |
50 { |
51 setFlag(QGraphicsItem::ItemClipsChildrenToShape); |
51 setFlag(QGraphicsItem::ItemClipsChildrenToShape); |
52 setFlag(QGraphicsItem::ItemHasNoContents); |
52 setFlag(QGraphicsItem::ItemHasNoContents); |
53 |
53 setFlag(QGraphicsItem::ItemIsPanel); |
54 grabGesture(Qt::TapGesture); |
54 |
55 grabGesture(Qt::TapAndHoldGesture); |
|
56 grabGesture(Qt::PanGesture); |
55 grabGesture(Qt::PanGesture); |
57 grabGesture(Qt::PinchGesture); |
|
58 grabGesture(Qt::SwipeGesture); |
|
59 grabGesture(Qt::CustomGesture); |
|
60 |
56 |
61 setupTouchArea(); |
57 setupTouchArea(); |
62 setupEffects(); |
58 setupEffects(); |
63 |
59 |
64 setMinimumSize(HSCONFIGURATION_GET(minimumWidgetSizeInPixels)); |
60 setMinimumSize(HSCONFIGURATION_GET(minimumWidgetSizeInPixels)); |
65 setMaximumSize(HSCONFIGURATION_GET(maximumWidgetSizeInPixels)); |
61 setMaximumSize(HSCONFIGURATION_GET(maximumWidgetSizeInPixels)); |
66 |
62 |
67 } |
63 } |
68 |
64 |
69 /*! |
65 /*! |
70 Destructor. |
66 Destructor. |
71 */ |
67 */ |