![]() |
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>
Classes | |
struct | DelayState |
struct | QMenuCaused |
struct | QMenuScroller |
class | ScrollerTearOffItem |
Static Public Member Functions | |
static QMenuPrivate * | get (QMenu *m) |
Static Public Member Functions inherited from QWidgetPrivate | |
static QWidgetPrivate * | get (QWidget *w) |
static const QWidgetPrivate * | get (const QWidget *w) |
static void | checkRestoredGeometry (const QRect &availableGeometry, QRect *restoredGeometry, int frameHeight) |
static void | adjustFlags (Qt::WindowFlags &flags, QWidget *w=nullptr) |
static QWidget * | parentGraphicsView (const QWidget *widget) |
static QRect | screenGeometry (const QWidget *widget) |
static QRect | availableScreenGeometry (const QWidget *widget) |
static QScreen * | screen (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true) |
static QRect | screenGeometry (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true) |
static QRect | availableScreenGeometry (const QWidget *widget, const QPoint &globalPosition, bool hasPosition=true) |
static void | sendComposeStatus (QWidget *w, bool end) |
static void | setWidgetParentHelper (QObject *widgetAsObject, QObject *newParent) |
static bool | insertIntoFocusChain (const QWidgetList &toBeInserted, FocusDirection direction, QWidget *position) |
static QWidgetList | takeFromFocusChain (QWidget *from, QWidget *to, FocusDirection direction=FocusDirection::Next) |
Static Public Member Functions inherited from QObjectPrivate | |
static bool | removeConnection (Connection *c) |
static QObjectPrivate * | get (QObject *o) |
static const QObjectPrivate * | get (const QObject *o) |
template<typename Func1, typename Func2> | |
static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
template<typename Func1, typename Func2> | |
static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Static Public Attributes | |
static QMenu * | mouseDown = nullptr |
Static Public Attributes inherited from QWidgetPrivate | |
static QWidgetMapper * | mapper = nullptr |
static QWidgetSet * | allWidgets = nullptr |
static int | instanceCounter = 0 |
static int | maxInstances = 0 |
using QMenuPrivate::PositionFunction = std::function<QPoint(const QSize &)> |
|
strong |
|
inline |
Definition at line 278 of file qmenu_p.h.
References aboutToHide, collapsibleSeparators, delayedPopupGuard, doChildEffects, hasCheckableItems, hasHadMouse, hasReceievedEnter, itemsDirty, lastContextMenu, tearoff, tearoffHighlighted, toolTipsVisible, and tornoff.
void QMenuPrivate::_q_actionTriggered | ( | ) |
Definition at line 1511 of file qmenu.cpp.
References activationRecursionGuard, and hideUpToMenuBar().
void QMenuPrivate::_q_overrideMenuActionDestroyed | ( | ) |
Definition at line 939 of file qmenu.cpp.
References defaultMenuAction, and menuAction.
Definition at line 504 of file qmenu.cpp.
References updateActionRects().
void QMenuPrivate::activateAction | ( | QAction * | action, |
QAction::ActionEvent | action_e, | ||
bool | self = true ) |
Definition at line 1442 of file qmenu.cpp.
References hideUpToMenuBar().
void QMenuPrivate::activateCausedStack | ( | const QList< QPointer< QWidget > > & | causedStack, |
QAction * | action, | ||
QAction::ActionEvent | action_e, | ||
bool | self ) |
Definition at line 1401 of file qmenu.cpp.
References activationRecursionGuard.
|
inline |
void QMenuPrivate::copyActionToPlatformItem | ( | const QAction * | action, |
QPlatformMenuItem * | item ) |
QPlatformMenu * QMenuPrivate::createPlatformMenu | ( | ) |
void QMenuPrivate::drawScroller | ( | QPainter * | painter, |
ScrollerTearOffItem::Type | type, | ||
const QRect & | rect ) |
Definition at line 960 of file qmenu.cpp.
References QMenuPrivate::QMenuScroller::ScrollDown, and QMenuPrivate::QMenuScroller::ScrollUp.
QAction * QMenuPrivate::exec | ( | const QPoint & | p, |
QAction * | action, | ||
PositionFunction | positionFunction = {} ) |
|
inlinestatic |
int QMenuPrivate::getLastVisibleAction | ( | ) | const |
Definition at line 487 of file qmenu.cpp.
References collapsibleSeparators.
Referenced by updateActionRects().
bool QMenuPrivate::hasMouseMoved | ( | const QPoint & | globalPos | ) |
void QMenuPrivate::hideUpToMenuBar | ( | ) |
Definition at line 516 of file qmenu.cpp.
References tornoff.
Referenced by _q_actionTriggered(), activateAction(), and mouseEventTaken().
void QMenuPrivate::init | ( | ) |
Definition at line 156 of file qmenu.cpp.
References QMenuPrivate::QMenuScroller::ScrollNone.
QPlatformMenuItem * QMenuPrivate::insertActionInPlatformMenu | ( | const QAction * | action, |
QPlatformMenuItem * | beforeItem ) |
bool QMenuPrivate::isContextMenu | ( | ) | const |
bool QMenuPrivate::mouseEventTaken | ( | QMouseEvent * | e | ) |
Definition at line 1312 of file qmenu.cpp.
References hideUpToMenuBar(), QMenuPrivate::QMenuScroller::ScrollDown, scrollerHeight(), QMenuPrivate::QMenuScroller::ScrollUp, tearoff, and tearoffHighlighted.
void QMenuPrivate::popup | ( | const QPoint & | p, |
QAction * | atAction, | ||
PositionFunction | positionFunction = {} ) |
Definition at line 2306 of file qmenu.cpp.
References doChildEffects, eventLoop, isContextMenu(), itemsDirty, lastContextMenu, motions, QMenuPrivate::QMenuScroller::ScrollDown, QMenuPrivate::QMenuScroller::ScrollNone, QMenuPrivate::QMenuScroller::scrollOffset, QMenuPrivate::QMenuScroller::ScrollUp, tearoffHighlighted, updateActionRects(), and updateLayoutDirection().
int QMenuPrivate::scrollerHeight | ( | ) | const |
Definition at line 277 of file qmenu.cpp.
Referenced by mouseEventTaken(), QMenuPrivate::ScrollerTearOffItem::paintEvent(), scrollMenu(), scrollMenu(), and setFirstActionActive().
void QMenuPrivate::scrollMenu | ( | QAction * | action, |
QMenuScroller::ScrollLocation | location, | ||
bool | active = false ) |
Definition at line 1118 of file qmenu.cpp.
References itemsDirty, QMenuPrivate::QMenuScroller::ScrollDown, scrollerHeight(), QMenuPrivate::QMenuScroller::ScrollNone, QMenuPrivate::QMenuScroller::scrollOffset, QMenuPrivate::QMenuScroller::ScrollTop, QMenuPrivate::QMenuScroller::ScrollUp, and updateActionRects().
void QMenuPrivate::scrollMenu | ( | QMenuScroller::ScrollDirection | direction, |
bool | page = false, | ||
bool | active = false ) |
Definition at line 1265 of file qmenu.cpp.
References QMenuPrivate::QMenuScroller::ScrollDown, scrollerHeight(), QMenuPrivate::QMenuScroller::scrollOffset, QMenuPrivate::QMenuScroller::ScrollUp, and updateActionRects().
void QMenuPrivate::scrollMenu | ( | QMenuScroller::ScrollLocation | location, |
bool | active = false ) |
Definition at line 1232 of file qmenu.cpp.
References Down, QMenuPrivate::QMenuScroller::ScrollBottom, QMenuPrivate::QMenuScroller::ScrollDown, QMenuPrivate::QMenuScroller::ScrollTop, QMenuPrivate::QMenuScroller::ScrollUp, SelectedFromKeyboard, Up, and updateActionRects().
void QMenuPrivate::setCurrentAction | ( | QAction * | action, |
int | popup = -1, | ||
SelectionReason | reason = SelectedFromElsewhere, | ||
SelectionDirection | direction = SelectionDirection::Down, | ||
bool | activateFirst = false ) |
Definition at line 704 of file qmenu.cpp.
References currentAction, SelectedFromKeyboard, and tearoffHighlighted.
void QMenuPrivate::setFirstActionActive | ( | ) |
Definition at line 683 of file qmenu.cpp.
References scrollerHeight(), QMenuPrivate::QMenuScroller::scrollOffset, QMenuPrivate::QMenuScroller::ScrollUp, and updateActionRects().
Definition at line 927 of file qmenu.cpp.
References defaultMenuAction, and menuAction.
void QMenuPrivate::setPlatformMenu | ( | QPlatformMenu * | menu | ) |
void QMenuPrivate::setSyncAction | ( | ) |
Definition at line 665 of file qmenu.cpp.
References currentAction.
void QMenuPrivate::updateActionRects | ( | ) | const |
Definition at line 331 of file qmenu.cpp.
Referenced by actionRect(), popup(), scrollMenu(), scrollMenu(), scrollMenu(), and setFirstActionActive().
Definition at line 336 of file qmenu.cpp.
References collapsibleSeparators, getLastVisibleAction(), hasCheckableItems, itemsDirty, maxIconWidth, tabWidth, and tornoff.
void QMenuPrivate::updateLayoutDirection | ( | ) |
bool QMenuPrivate::aboutToHide |
Definition at line 508 of file qmenu_p.h.
Referenced by QMenuPrivate().
bool QMenuPrivate::activationRecursionGuard = false |
Definition at line 490 of file qmenu_p.h.
Referenced by _q_actionTriggered(), and activateCausedStack().
QMenuCaused QMenuPrivate::causedPopup |
bool QMenuPrivate::collapsibleSeparators |
Definition at line 502 of file qmenu_p.h.
Referenced by QMenuPrivate(), getLastVisibleAction(), and updateActionRects().
QAction* QMenuPrivate::currentAction = nullptr |
Definition at line 333 of file qmenu_p.h.
Referenced by setCurrentAction(), setSyncAction(), and QMenuSloppyState::timeout().
QAction* QMenuPrivate::defaultMenuAction = nullptr |
Definition at line 432 of file qmenu_p.h.
Referenced by _q_overrideMenuActionDestroyed(), and setOverrideMenuAction().
bool QMenuPrivate::delayedPopupGuard |
Definition at line 504 of file qmenu_p.h.
Referenced by QMenuPrivate().
struct QMenuPrivate::DelayState QMenuPrivate::delayState |
bool QMenuPrivate::doChildEffects |
Definition at line 514 of file qmenu_p.h.
Referenced by QMenuPrivate(), and popup().
QEventLoop* QMenuPrivate::eventLoop = nullptr |
|
mutable |
Definition at line 500 of file qmenu_p.h.
Referenced by QMenuPrivate(), and updateActionRects().
bool QMenuPrivate::hasHadMouse |
Definition at line 507 of file qmenu_p.h.
Referenced by QMenuPrivate().
bool QMenuPrivate::hasReceievedEnter |
Definition at line 505 of file qmenu_p.h.
Referenced by QMenuPrivate(), and QMenuSloppyState::timeout().
|
mutable |
Definition at line 499 of file qmenu_p.h.
Referenced by QMenuPrivate(), popup(), scrollMenu(), and updateActionRects().
bool QMenuPrivate::lastContextMenu |
Definition at line 501 of file qmenu_p.h.
Referenced by QMenuPrivate(), and popup().
|
mutable |
Definition at line 485 of file qmenu_p.h.
Referenced by updateActionRects().
QAction* QMenuPrivate::menuAction = nullptr |
Definition at line 431 of file qmenu_p.h.
Referenced by _q_overrideMenuActionDestroyed(), and setOverrideMenuAction().
|
static |
QPointer<QPlatformMenu> QMenuPrivate::platformMenu |
struct QMenuPrivate::QMenuScroller * QMenuPrivate::scroll = nullptr |
ScrollerTearOffItem* QMenuPrivate::scrollDownItem = nullptr |
ScrollerTearOffItem* QMenuPrivate::scrollUpTearOffItem = nullptr |
QBasicTimer QMenuPrivate::searchBufferTimer |
QMenuSloppyState QMenuPrivate::sloppyState |
|
mutable |
Definition at line 486 of file qmenu_p.h.
Referenced by updateActionRects().
bool QMenuPrivate::tearoff |
Definition at line 510 of file qmenu_p.h.
Referenced by QMenuPrivate(), drawTearOff(), and mouseEventTaken().
bool QMenuPrivate::tearoffHighlighted |
Definition at line 512 of file qmenu_p.h.
Referenced by QMenuPrivate(), mouseEventTaken(), popup(), and setCurrentAction().
bool QMenuPrivate::toolTipsVisible |
Definition at line 503 of file qmenu_p.h.
Referenced by QMenuPrivate().
bool QMenuPrivate::tornoff |
Definition at line 511 of file qmenu_p.h.
Referenced by QMenuPrivate(), hideUpToMenuBar(), and updateActionRects().
QPointer<QTornOffMenu> QMenuPrivate::tornPopup |