equal
deleted
inserted
replaced
60 int type() const { return Type; } |
60 int type() const { return Type; } |
61 |
61 |
62 protected: |
62 protected: |
63 virtual void gestureEvent(QGestureEvent *event); |
63 virtual void gestureEvent(QGestureEvent *event); |
64 QVariant itemChange(GraphicsItemChange change, const QVariant &value); |
64 QVariant itemChange(GraphicsItemChange change, const QVariant &value); |
|
65 void changeEvent(QEvent *event); |
65 private: |
66 private: |
66 void updateCurrentItem(); |
67 void updateCurrentItem(); |
67 bool isFocusable(QAction *action); |
68 bool isFocusable(QAction *action); |
68 protected: |
69 protected: |
69 friend class HbMenuPrivate; |
70 friend class HbMenuPrivate; |
76 Q_DECLARE_PUBLIC(HbMenuListView) |
77 Q_DECLARE_PUBLIC(HbMenuListView) |
77 |
78 |
78 public: |
79 public: |
79 HbMenuListViewPrivate(); |
80 HbMenuListViewPrivate(); |
80 virtual ~HbMenuListViewPrivate() { } |
81 virtual ~HbMenuListViewPrivate() { } |
|
82 void updateScrollMetrics(); |
|
83 void doLazyInit(); |
81 HbMenuContainer *mContainer; |
84 HbMenuContainer *mContainer; |
82 HbMenuItem *mHitItem; |
|
83 HbMenuItem *mCurrentItem; |
85 HbMenuItem *mCurrentItem; |
84 int mCurrentIndex; |
86 int mCurrentIndex; |
85 bool mWasScrolling; |
87 bool mWasScrolling; |
86 }; |
88 }; |
87 |
89 |
101 void updateVisibleActionList(); |
103 void updateVisibleActionList(); |
102 void reLayout(); |
104 void reLayout(); |
103 |
105 |
104 protected: |
106 protected: |
105 void polish(HbStyleParameters ¶ms); |
107 void polish(HbStyleParameters ¶ms); |
|
108 QVariant itemChange(GraphicsItemChange change, const QVariant &value); |
|
109 void changeEvent(QEvent *event); |
106 private: |
110 private: |
107 int actionMenuPos(QAction *action); |
111 int actionMenuPos(QAction *action); |
108 Q_DECLARE_PRIVATE_D(d_ptr, HbMenuContainer) |
112 Q_DECLARE_PRIVATE_D(d_ptr, HbMenuContainer) |
109 }; |
113 }; |
110 |
114 |
121 HbActionManager *actionManager; |
125 HbActionManager *actionManager; |
122 QList<HbMenuItem*> mItems; |
126 QList<HbMenuItem*> mItems; |
123 QMap<QAction*, HbMenuItem*> mBufferItems; |
127 QMap<QAction*, HbMenuItem*> mBufferItems; |
124 QList<HbMenuItem*> mOldVisibleItems; |
128 QList<HbMenuItem*> mOldVisibleItems; |
125 QList<QAction*> mVisibleActions; |
129 QList<QAction*> mVisibleActions; |
|
130 bool mDelayLayout; |
126 }; |
131 }; |
127 |
132 |
128 #endif // MENU_P_H |
133 #endif // MENU_P_H |