Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QMenuSloppyState Class Reference

#include <qmenu_p.h>

Collaboration diagram for QMenuSloppyState:

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
QMenusubMenu () const

Static Public Member Functions

static qreal slope (const QPointF &p1, const QPointF &p2)

Detailed Description

Definition at line 92 of file qmenu_p.h.

Member Enumeration Documentation

◆ MouseEventResult

Enumerator
EventIsProcessed 
EventShouldBePropagated 
EventDiscardsSloppyState 

Definition at line 121 of file qmenu_p.h.

Constructor & Destructor Documentation

◆ QMenuSloppyState()

QMenuSloppyState::QMenuSloppyState ( )
inline

Definition at line 96 of file qmenu_p.h.

◆ ~QMenuSloppyState()

QMenuSloppyState::~QMenuSloppyState ( )
inline

Definition at line 103 of file qmenu_p.h.

Member Function Documentation

◆ checkSlope()

bool QMenuSloppyState::checkSlope ( qreal oldS,
qreal newS,
bool wantSteeper )
inline

Definition at line 158 of file qmenu_p.h.

◆ childEnter()

void QMenuSloppyState::childEnter ( )

Definition at line 806 of file qmenu.cpp.

References childEnter(), and stopTimer().

Referenced by childEnter(), and enter().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ childLeave()

void QMenuSloppyState::childLeave ( )

Definition at line 822 of file qmenu.cpp.

References childLeave(), and startTimerIfNotRunning().

Referenced by childLeave(), and leave().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ enabled()

bool QMenuSloppyState::enabled ( ) const
inline

Definition at line 119 of file qmenu_p.h.

◆ enter()

void QMenuSloppyState::enter ( )

Definition at line 794 of file qmenu.cpp.

References childEnter().

Here is the call graph for this function:

◆ hasParentActiveDelayTimer()

bool QMenuSloppyState::hasParentActiveDelayTimer ( ) const

Definition at line 846 of file qmenu.cpp.

◆ initialize()

void QMenuSloppyState::initialize ( QMenu * menu)
inline

Definition at line 105 of file qmenu_p.h.

◆ isTimerId()

bool QMenuSloppyState::isTimerId ( int timerId) const
inline

Definition at line 246 of file qmenu_p.h.

◆ leave()

void QMenuSloppyState::leave ( )

Definition at line 813 of file qmenu.cpp.

References childLeave(), and startTimerIfNotRunning().

Here is the call graph for this function:

◆ processMouseEvent()

MouseEventResult QMenuSloppyState::processMouseEvent ( const QPointF & mousePos,
QAction * resetAction,
QAction * currentAction )
inline

Definition at line 165 of file qmenu_p.h.

References EventDiscardsSloppyState, EventIsProcessed, EventShouldBePropagated, startTimer(), startTimerIfNotRunning(), and stopTimer().

Here is the call graph for this function:

◆ reset()

void QMenuSloppyState::reset ( )

Definition at line 777 of file qmenu.cpp.

◆ setSubMenuPopup()

void QMenuSloppyState::setSubMenuPopup ( const QRect & actionRect,
QAction * resetAction,
QMenu * subMenu )

Definition at line 831 of file qmenu.cpp.

◆ slope()

qreal QMenuSloppyState::slope ( const QPointF & p1,
const QPointF & p2 )
inlinestatic

Definition at line 150 of file qmenu_p.h.

◆ startTimer()

void QMenuSloppyState::startTimer ( )
inline

Definition at line 127 of file qmenu_p.h.

Referenced by processMouseEvent(), and startTimerIfNotRunning().

Here is the caller graph for this function:

◆ startTimerIfNotRunning()

void QMenuSloppyState::startTimerIfNotRunning ( )
inline

Definition at line 133 of file qmenu_p.h.

References startTimer().

Referenced by childLeave(), leave(), and processMouseEvent().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ stopTimer()

void QMenuSloppyState::stopTimer ( )
inline

Definition at line 139 of file qmenu_p.h.

Referenced by childEnter(), and processMouseEvent().

Here is the caller graph for this function:

◆ subMenu()

QMenu * QMenuSloppyState::subMenu ( ) const
inline

Definition at line 247 of file qmenu_p.h.

◆ timeForTimeout()

int QMenuSloppyState::timeForTimeout ( ) const
inline

Definition at line 244 of file qmenu_p.h.

◆ timeout()

void QMenuSloppyState::timeout ( )

Definition at line 871 of file qmenu.cpp.

References ResetOnDestroy::ResetOnDestroy(), QMenuPrivate::currentAction, and QMenuPrivate::hasReceievedEnter.

Here is the call graph for this function:

The documentation for this class was generated from the following files: