equal
deleted
inserted
replaced
30 #include <hbwidget.h> |
30 #include <hbwidget.h> |
31 #include <hbinstance.h> |
31 #include <hbinstance.h> |
32 #include <hbiconanimationmanager.h> |
32 #include <hbiconanimationmanager.h> |
33 #include <hbiconanimator.h> |
33 #include <hbiconanimator.h> |
34 #include <hbwidgetfeedback.h> |
34 #include <hbwidgetfeedback.h> |
|
35 #include <hbnamespace_p.h> |
35 #include <QGraphicsScene> |
36 #include <QGraphicsScene> |
36 |
37 |
37 /*! |
38 /*! |
|
39 @stable |
|
40 @hbcore |
38 \class HbLongPressVisualizer |
41 \class HbLongPressVisualizer |
39 |
42 |
40 \brief Displays the long press animation, that is, the small animated icon |
43 \brief Displays the long press animation, that is, the small animated icon |
41 indicating that the tap being held may potentially become a long press. |
44 indicating that the tap being held may potentially become a long press. |
42 |
45 |
105 connect(&mTimer, SIGNAL(timeout()), SLOT(showIcon())); |
108 connect(&mTimer, SIGNAL(timeout()), SLOT(showIcon())); |
106 HbIconAnimationManager::global()->addDefinitionFile("qtg_anim_longtap.axml"); |
109 HbIconAnimationManager::global()->addDefinitionFile("qtg_anim_longtap.axml"); |
107 mIconItem = new HbIconItem("qtg_anim_longtap"); |
110 mIconItem = new HbIconItem("qtg_anim_longtap"); |
108 mIconItem->hide(); |
111 mIconItem->hide(); |
109 mIconItem->setSize(mIconItem->defaultSize()); |
112 mIconItem->setSize(mIconItem->defaultSize()); |
|
113 mIconItem->setZValue(HbPrivate::PopupZValueRangeEnd + 5000); |
110 } |
114 } |
111 QGraphicsScene *targetScene = mainWindow->scene(); |
115 QGraphicsScene *targetScene = mainWindow->scene(); |
112 QGraphicsScene *oldScene = mIconItem->scene(); |
116 QGraphicsScene *oldScene = mIconItem->scene(); |
113 if (targetScene != oldScene) { |
117 if (targetScene != oldScene) { |
114 if (oldScene) { |
118 if (oldScene) { |