src/gui/widgets/qmenu_p.h
branchGCC_SURGE
changeset 31 5daf16870df6
parent 30 5dc02b23752f
equal deleted inserted replaced
27:93b982ccede2 31:5daf16870df6
   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;
   356                     return act;
   356                     return act;
   357             }
   357             }
   358             return 0;
   358             return 0;
   359         }
   359         }
   360     } *wce_menu;
   360     } *wce_menu;
   361     HMENU wceMenu(bool create = false);
   361     HMENU wceMenu();
   362     QAction* wceCommands(uint command);
   362     QAction* wceCommands(uint command);
   363 #endif
   363 #endif
   364 #if defined(Q_WS_S60)
   364 #if defined(Q_WS_S60)
   365     struct QSymbianMenuPrivate {
   365     struct QSymbianMenuPrivate {
   366         QList<QSymbianMenuAction*> actionItems;
   366         QList<QSymbianMenuAction*> actionItems;