200 uint collapsibleSeparators : 1; |
200 uint collapsibleSeparators : 1; |
201 |
201 |
202 bool activationRecursionGuard; |
202 bool activationRecursionGuard; |
203 |
203 |
204 //selection |
204 //selection |
205 static QPointer<QMenu> mouseDown; |
205 static QMenu *mouseDown; |
206 QPoint mousePopupPos; |
206 QPoint mousePopupPos; |
207 uint hasHadMouse : 1; |
207 uint hasHadMouse : 1; |
208 uint aboutToHide : 1; |
208 uint aboutToHide : 1; |
209 int motions; |
209 int motions; |
210 QAction *currentAction; |
210 QAction *currentAction; |
211 #ifdef QT_KEYPAD_NAVIGATION |
211 #ifdef QT_KEYPAD_NAVIGATION |
212 QAction *selectAction; |
212 QAction *selectAction; |
213 QAction *cancelAction; |
213 QAction *cancelAction; |
214 #endif |
214 #endif |
215 static QBasicTimer menuDelayTimer; |
215 QBasicTimer menuDelayTimer; |
216 enum SelectionReason { |
216 enum SelectionReason { |
217 SelectedFromKeyboard, |
217 SelectedFromKeyboard, |
218 SelectedFromElsewhere |
218 SelectedFromElsewhere |
219 }; |
219 }; |
220 QWidget *topCausedWidget() const; |
220 QWidget *topCausedWidget() const; |
270 QPointer<QTornOffMenu> tornPopup; |
270 QPointer<QTornOffMenu> tornPopup; |
271 |
271 |
272 mutable bool hasCheckableItems; |
272 mutable bool hasCheckableItems; |
273 |
273 |
274 //sloppy selection |
274 //sloppy selection |
275 static QBasicTimer sloppyDelayTimer; |
275 static int sloppyDelayTimer; |
276 mutable QAction *sloppyAction; |
276 mutable QAction *sloppyAction; |
277 QRegion sloppyRegion; |
277 QRegion sloppyRegion; |
278 |
278 |
279 //default action |
279 //default action |
280 QPointer<QAction> defaultAction; |
280 QPointer<QAction> defaultAction; |