![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qmenu_p.h>
Public Types | |
| enum | MouseEventResult { EventIsProcessed , EventShouldBePropagated , EventDiscardsSloppyState } |
Public Member Functions | |
| QMenuSloppyState () | |
| ~QMenuSloppyState () | |
| void | initialize (QMenu *menu) |
| void | reset () |
| bool | enabled () const |
| void | startTimer () |
| void | startTimerIfNotRunning () |
| void | stopTimer () |
| void | enter () |
| void | childEnter () |
| void | leave () |
| void | childLeave () |
| bool | checkSlope (qreal oldS, qreal newS, bool wantSteeper) |
| MouseEventResult | processMouseEvent (const QPointF &mousePos, QAction *resetAction, QAction *currentAction) |
| void | setSubMenuPopup (const QRect &actionRect, QAction *resetAction, QMenu *subMenu) |
| bool | hasParentActiveDelayTimer () const |
| void | timeout () |
| int | timeForTimeout () const |
| bool | isTimerId (int timerId) const |
| QMenu * | subMenu () const |
Static Public Member Functions | |
| static qreal | slope (const QPointF &p1, const QPointF &p2) |
| void QMenuSloppyState::childEnter | ( | ) |
Definition at line 809 of file qmenu.cpp.
References childEnter(), and stopTimer().
Referenced by childEnter(), and enter().
| void QMenuSloppyState::childLeave | ( | ) |
Definition at line 825 of file qmenu.cpp.
References childLeave(), and startTimerIfNotRunning().
Referenced by childLeave(), and leave().
| void QMenuSloppyState::enter | ( | ) |
Definition at line 797 of file qmenu.cpp.
References childEnter().
| bool QMenuSloppyState::hasParentActiveDelayTimer | ( | ) | const |
|
inline |
| void QMenuSloppyState::leave | ( | ) |
Definition at line 816 of file qmenu.cpp.
References childLeave(), and startTimerIfNotRunning().
|
inline |
Definition at line 165 of file qmenu_p.h.
References EventDiscardsSloppyState, EventIsProcessed, EventShouldBePropagated, startTimer(), startTimerIfNotRunning(), and stopTimer().
|
inline |
Definition at line 127 of file qmenu_p.h.
Referenced by processMouseEvent(), and startTimerIfNotRunning().
|
inline |
Definition at line 133 of file qmenu_p.h.
References startTimer().
Referenced by childLeave(), leave(), and processMouseEvent().
|
inline |
Definition at line 139 of file qmenu_p.h.
Referenced by childEnter(), and processMouseEvent().
| void QMenuSloppyState::timeout | ( | ) |
Definition at line 874 of file qmenu.cpp.
References ResetOnDestroy::ResetOnDestroy(), QMenuPrivate::currentAction, and QMenuPrivate::hasReceievedEnter.