![]() |
Qt 6.x
The Qt SDK
|
#include <qmenu_p.h>
Classes | |
struct | DelayState |
struct | QMenuCaused |
struct | QMenuScroller |
class | ScrollerTearOffItem |
Public Types | |
enum | SelectionReason { SelectedFromKeyboard , SelectedFromElsewhere } |
using | PositionFunction = std::function< QPoint(const QSize &)> |
![]() | |
enum | DrawWidgetFlag { DrawAsRoot = 0x01 , DrawPaintOnScreen = 0x02 , DrawRecursive = 0x04 , DrawInvisible = 0x08 , DontSubtractOpaqueChildren = 0x10 , DontDrawOpaqueChildren = 0x20 , DontDrawNativeChildren = 0x40 , DontSetCompositionMode = 0x80 , UseEffectRegionBounds = 0x100 } |
enum | Direction { DirectionNorth = 0x01 , DirectionEast = 0x10 , DirectionSouth = 0x02 , DirectionWest = 0x20 } |
enum class | WindowHandleMode { Direct , Closest , TopLevel } |
enum | CloseMode { CloseNoEvent , CloseWithEvent , CloseWithSpontaneousEvent } |
![]() | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
Static Public Member Functions | |
static QMenuPrivate * | get (QMenu *m) |
![]() | |
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 | 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 QWidgetMapper * | mapper = nullptr |
static QWidgetSet * | allWidgets = nullptr |
static int | instanceCounter = 0 |
static int | maxInstances = 0 |
using QMenuPrivate::PositionFunction = std::function<QPoint(const QSize &)> |
|
inline |
Definition at line 290 of file qmenu_p.h.
References QPointer< T >::data(), QPointer< T >::isNull(), QObject::parent(), platformMenu, and scroll.
void QMenuPrivate::_q_actionTriggered | ( | ) |
Definition at line 1499 of file qmenu.cpp.
References activateCausedStack(), activationRecursionGuard, QList< T >::append(), QPlatformMenu::dismiss(), emit, hideUpToMenuBar(), list, QWidget::parentWidget(), platformMenu, QAction::Trigger, QHash< Key, T >::value(), widget, and widgetItems.
void QMenuPrivate::_q_overrideMenuActionDestroyed | ( | ) |
Definition at line 922 of file qmenu.cpp.
References QMenu::menuAction().
void QMenuPrivate::_q_platformMenuAboutToShow | ( | ) |
Definition at line 1539 of file qmenu.cpp.
References QWidgetPrivate::actions, emit, QPlatformMenu::menuItemForTag(), QObject::parent(), platformMenu, QPlatformMenu::syncMenuItem(), QHash< Key, T >::value(), widget, and widgetItems.
|
inline |
Definition at line 898 of file qmenu.cpp.
References QWidget::actions(), QList< T >::at(), contains(), i, and QWidget::rect.
Definition at line 498 of file qmenu.cpp.
References QWidget::actions(), and QListSpecialMethodsBase< T >::indexOf().
Referenced by activateAction().
void QMenuPrivate::activateAction | ( | QAction * | action, |
QAction::ActionEvent | action_e, | ||
bool | self = true |
||
) |
Definition at line 1430 of file qmenu.cpp.
References actionAboutToTrigger, actionRect(), activateCausedStack(), QApplication::activePopupWidget(), calcCausedStack(), hideUpToMenuBar(), QAction::Hover, indexOf(), QWhatsThis::inWhatsThisMode(), QAction::isEnabled(), QAction::isSeparator(), QT_CONFIG, QAction::showStatusText(), QWhatsThis::showText(), topCausedWidget(), QAction::Trigger, Qt::WA_DontShowOnScreen, QAction::whatsThis, and widget.
void QMenuPrivate::activateCausedStack | ( | const QList< QPointer< QWidget > > & | causedStack, |
QAction * | action, | ||
QAction::ActionEvent | action_e, | ||
bool | self | ||
) |
Definition at line 1389 of file qmenu.cpp.
References QAction::activate(), activationRecursionGuard, emit, QAction::Hover, i, qScopeGuard(), QAction::Trigger, and widget.
Referenced by _q_actionTriggered(), and activateAction().
Definition at line 302 of file qmenu.cpp.
Referenced by activateAction().
void QMenuPrivate::copyActionToPlatformItem | ( | const QAction * | action, |
QPlatformMenuItem * | item | ||
) |
Definition at line 228 of file qmenu.cpp.
References QAction::actionGroup(), QPlatformMenu::createSubMenu(), QAction::font, getParentWidget(), QAction::icon, QStyleOption::initFrom(), QAction::isCheckable(), QAction::isChecked(), QAction::isEnabled(), QActionGroup::isExclusive(), QAction::isIconVisibleInMenu(), QAction::isSeparator(), QAction::isVisible(), item, QAction::menu(), QAction::menuRole, opt, QMenu::platformMenu(), QStyle::PM_SmallIconSize, QGraphicsItem::setEnabled(), QGraphicsItem::setVisible(), QApplication::style(), and QAction::text.
QPlatformMenu * QMenuPrivate::createPlatformMenu | ( | ) |
Definition at line 183 of file qmenu.cpp.
References QMenu::platformMenu(), and QGuiApplicationPrivate::platformTheme().
void QMenuPrivate::drawScroller | ( | QPainter * | painter, |
ScrollerTearOffItem::Type | type, | ||
const QRect & | rect | ||
) |
Definition at line 943 of file qmenu.cpp.
References QStyle::CE_MenuScroller, QStyleOptionMenuItem::checkType, QStyleOption::initFrom(), QRect::isEmpty(), QStyleOptionMenuItem::maxIconWidth, QStyleOptionMenuItem::menuItemType, QStyleOptionMenuItem::NotCheckable, painter, QWidget::rect, QStyleOption::rect, QStyleOptionMenuItem::reservedShortcutWidth, QWidget::scroll(), QMenuPrivate::QMenuScroller::ScrollDown, QMenuPrivate::ScrollerTearOffItem::ScrollDown, QStyleOptionMenuItem::Scroller, QMenuPrivate::QMenuScroller::ScrollUp, QPainter::setClipRect(), QStyleOption::state, QStyle::State_DownArrow, QStyle::State_Enabled, and QStyle::State_None.
Definition at line 969 of file qmenu.cpp.
References QStyle::CE_MenuTearoff, QStyleOptionMenuItem::checkType, QStyleOption::initFrom(), QRect::isEmpty(), QStyleOptionMenuItem::maxIconWidth, QStyleOptionMenuItem::menuItemType, QStyleOptionMenuItem::NotCheckable, painter, QWidget::rect, QStyleOption::rect, QStyleOptionMenuItem::reservedShortcutWidth, QPainter::setClipRect(), QStyleOption::state, QStyle::State_None, QStyle::State_Selected, and QStyleOptionMenuItem::TearOff.
QAction * QMenuPrivate::exec | ( | const QPoint & | p, |
QAction * | action, | ||
PositionFunction | positionFunction = {} |
||
) |
Definition at line 2633 of file qmenu.cpp.
References eventLoop, QEventLoop::exec(), QPointer< T >::isNull(), popup(), syncAction, and void.
|
inlinestatic |
Definition at line 307 of file qmenu_p.h.
Referenced by QMenuSloppyState::childLeave(), QWidgetTextControlPrivate::contextMenuEvent(), QMenuSloppyState::enter(), QMenuSloppyState::hasParentActiveDelayTimer(), QMenuBarPrivate::popupAction(), QMenuSloppyState::reset(), QMenuSloppyState::setSubMenuPopup(), and QMenuSloppyState::timeout().
int QMenuPrivate::getLastVisibleAction | ( | ) | const |
Definition at line 481 of file qmenu.cpp.
References QWidget::actions(), QList< T >::at(), QAction::isSeparator(), QAction::isVisible(), and QList< T >::size().
bool QMenuPrivate::hasMouseMoved | ( | const QPoint & | globalPos | ) |
Definition at line 1560 of file qmenu.cpp.
References motions, mousePopupPos, and QApplication::startDragDistance.
Referenced by mouseEventTaken().
Definition at line 538 of file qmenu.cpp.
References QMenu::aboutToHide(), QWidget::actions(), QMenu::activeAction(), QWidget::close(), QListSpecialMethodsBase< T >::contains(), QEvent::DeferredDelete, QObject::eventFilter(), QEventLoop::exec(), menu, Q_ASSERT, QMenu::setActiveAction(), QStyle::SH_Menu_FlashTriggeredItem, QTimer::singleShot, SLOT, QWidget::style(), QStyle::styleHint(), and QSignalBlocker::unblock().
Referenced by QMenuSloppyState::enter(), and QMenuSloppyState::timeout().
void QMenuPrivate::hideUpToMenuBar | ( | ) |
Definition at line 510 of file qmenu.cpp.
References QStyle::SH_Menu_FadeOutOnHide.
Referenced by _q_actionTriggered(), activateAction(), and mouseEventTaken().
|
inline |
Definition at line 411 of file qmenu_p.h.
Referenced by activateAction().
void QMenuPrivate::init | ( | ) |
Definition at line 158 of file qmenu.cpp.
References QAction::changed(), QObject::connect(), QMenu::menuAction(), QWidget::scroll(), QMenuPrivate::QMenuScroller::ScrollNone, QAction::setMenu(), QStyle::SH_Menu_MouseTracking, QStyle::SH_Menu_Scrollable, QStyle::SH_Menu_SubMenuPopupDelay, Qt::WA_CustomWhatsThis, and Qt::WA_X11NetWmWindowTypePopupMenu.
QPlatformMenuItem * QMenuPrivate::insertActionInPlatformMenu | ( | const QAction * | action, |
QPlatformMenuItem * | beforeItem | ||
) |
Definition at line 265 of file qmenu.cpp.
References QPlatformMenuItem::activated(), QObject::connect(), QPlatformMenu::createMenuItem(), QAction::hovered(), QPlatformMenuItem::hovered(), QPlatformMenu::insertMenuItem(), QMenu::platformMenu(), Q_ASSERT, Qt::QueuedConnection, QPlatformMenuItem::setTag(), and QAction::trigger().
bool QMenuPrivate::isContextMenu | ( | ) | const |
bool QMenuPrivate::mouseEventTaken | ( | QMouseEvent * | e | ) |
Definition at line 1300 of file qmenu.cpp.
References activeMenu, QWidgetPrivate::bottommargin, causedPopup, QRect::contains(), dir, e, hasMouseMoved(), hideUpToMenuBar(), QStyleOption::initFrom(), QMenuSloppyState::leave(), QWidgetPrivate::leftmargin, QEvent::MouseButtonRelease, mouseDown, opt, QStyle::pixelMetric(), QStyle::PM_MenuHMargin, QStyle::PM_MenuPanelWidth, QStyle::PM_MenuTearoffHeight, QStyle::PM_MenuVMargin, pos, QWidgetPrivate::rightmargin, scroll, QMenuPrivate::QMenuScroller::scrollDirection, QMenuPrivate::QMenuScroller::ScrollDown, scrollerHeight(), QMenuPrivate::QMenuScroller::scrollFlags, QMenuPrivate::QMenuScroller::scrollTimer, QMenuPrivate::QMenuScroller::ScrollUp, QCoreApplication::sendEvent(), setCurrentAction(), QWidget::setGeometry(), QWidget::show(), sloppyState, QBasicTimer::start(), QBasicTimer::stop(), tearoff, tearoffHighlighted, QWidgetPrivate::topmargin, QPointF::toPoint(), tornPopup, QRect::translate(), and QMenuPrivate::QMenuCaused::widget.
void QMenuPrivate::popup | ( | const QPoint & | p, |
QAction * | atAction, | ||
PositionFunction | positionFunction = {} |
||
) |
Definition at line 2294 of file qmenu.cpp.
References actionRects, QWidgetPrivate::actions, QList< T >::at(), bypassGraphicsProxyWidget(), causedPopup, QRect::contains(), QWidgetPrivate::createWinId(), currentAction, defaultAction, doChildEffects, QEffects::DownScroll, emit, eventLoop, QWidget::geometry, QPushButtonPrivate::get(), QRect::height(), QSize::height(), i, QTLWExtra::initialScreen, isContextMenu(), QApplication::isEffectEnabled(), isEmbedded(), QAction::isEnabled(), itemsDirty, lastContextMenu, QRect::left(), QEffects::LeftScroll, QWidget::mapToGlobal(), motions, mousePopupPos, QRect::moveTopLeft(), ncols, QObjectData::parent, QStyle::PM_MenuDesktopFrameWidth, QStyle::PM_SubMenuOverlap, popupGeometry(), pos, QCursor::pos(), QWidget::pos, qFadeEffect(), qMax(), qMin(), qScrollEffect(), QRect::right(), QEffects::RightScroll, screen, QGuiApplication::screenAt(), scroll, QMenuPrivate::QMenuScroller::ScrollDown, QMenuPrivate::QMenuScroller::scrollFlags, QMenuPrivate::QMenuScroller::ScrollNone, QMenuPrivate::QMenuScroller::scrollOffset, QMenuPrivate::QMenuScroller::ScrollUp, QWidgetPrivate::setScreen(), QWidgetPrivate::setScreenForPoint(), QStyle::SH_Menu_FillScreenWithScroll, QList< T >::size(), tearoffHighlighted, topCausedWidget(), QWidgetPrivate::topData(), QRect::topLeft(), Qt::UI_AnimateMenu, Qt::UI_FadeMenu, updateActionRects(), updateLayoutDirection(), QEffects::UpScroll, Qt::WA_DontShowOnScreen, Qt::WA_X11NetWmWindowTypeDropDownMenu, QMenuPrivate::QMenuCaused::widget, QRect::width(), QSize::width(), QWidgetPrivate::windowHandle(), QPoint::x(), QWidget::x, QPoint::y(), and QPointF::y().
Referenced by exec().
Definition at line 625 of file qmenu.cpp.
References QAction::isEnabled(), QAction::menu(), and menu.
Definition at line 292 of file qmenu.cpp.
References QScreen::availableGeometry, QWidgetPrivate::availableScreenGeometry(), QScreen::geometry, QWidget::screen(), and QWidgetPrivate::screenGeometry().
Referenced by popup(), and scrollMenu().
QRect QMenuPrivate::rect | ( | ) | const |
Definition at line 993 of file qmenu.cpp.
References QStyleOption::initFrom(), opt, QStyle::pixelMetric(), QStyle::PM_MenuHMargin, QStyle::PM_MenuPanelWidth, QStyle::PM_MenuVMargin, and QWidget::style().
Referenced by QMenu::initStyleOption(), QMenuPrivate::ScrollerTearOffItem::paintEvent(), and QMenuPrivate::ScrollerTearOffItem::updateScrollerRects().
int QMenuPrivate::scrollerHeight | ( | ) | const |
Definition at line 279 of file qmenu.cpp.
References QStyle::PM_MenuScrollerHeight.
Referenced by mouseEventTaken(), scrollMenu(), and scrollMenu().
void QMenuPrivate::scrollMenu | ( | QAction * | action, |
QMenuScroller::ScrollLocation | location, | ||
bool | active = false |
||
) |
Definition at line 1101 of file qmenu.cpp.
References actionRects, QWidgetPrivate::actions, QList< T >::at(), QRect::bottom(), QWidgetPrivate::bottommargin, QRect::height(), i, itemsDirty, QRect::moveTop(), QStyle::PM_MenuDesktopFrameWidth, QStyle::PM_MenuPanelWidth, QStyle::PM_MenuTearoffHeight, QStyle::PM_MenuVMargin, popupGeometry(), qMin(), screen, scroll, QMenuPrivate::QMenuScroller::ScrollCenter, QMenuPrivate::QMenuScroller::ScrollDown, scrollerHeight(), QMenuPrivate::QMenuScroller::scrollFlags, QMenuPrivate::QMenuScroller::ScrollNone, QMenuPrivate::QMenuScroller::scrollOffset, QMenuPrivate::QMenuScroller::ScrollTop, QMenuPrivate::QMenuScroller::ScrollUp, QRect::setBottom(), setCurrentAction(), QRect::setHeight(), QRect::setTop(), QList< T >::size(), tearoff, QRect::top(), QWidgetPrivate::topmargin, updateActionRects(), QHash< Key, T >::value(), and widgetItems.
void QMenuPrivate::scrollMenu | ( | QMenuScroller::ScrollDirection | direction, |
bool | page = false , |
||
bool | active = false |
||
) |
Definition at line 1253 of file qmenu.cpp.
References actionRects, QWidgetPrivate::actions, QList< T >::at(), direction, QRect::height(), i, page, QStyle::PM_MenuPanelWidth, QStyle::PM_MenuVMargin, scroll, QMenuPrivate::QMenuScroller::ScrollBottom, QMenuPrivate::QMenuScroller::ScrollDown, scrollerHeight(), QMenuPrivate::QMenuScroller::scrollFlags, scrollMenu(), QMenuPrivate::QMenuScroller::scrollOffset, QMenuPrivate::QMenuScroller::ScrollTop, QMenuPrivate::QMenuScroller::ScrollUp, QList< T >::size(), and updateActionRects().
void QMenuPrivate::scrollMenu | ( | QMenuScroller::ScrollLocation | location, |
bool | active = false |
||
) |
Definition at line 1215 of file qmenu.cpp.
References actionRects, QWidgetPrivate::actions, QList< T >::at(), i, QAction::isEnabled(), QRect::isNull(), QAction::isSeparator(), scroll, QMenuPrivate::QMenuScroller::ScrollBottom, QMenuPrivate::QMenuScroller::ScrollDown, QMenuPrivate::QMenuScroller::scrollFlags, scrollMenu(), QMenuPrivate::QMenuScroller::ScrollTop, QMenuPrivate::QMenuScroller::ScrollUp, SelectedFromKeyboard, setCurrentAction(), QStyle::SH_Menu_AllowActiveAndDisabled, QList< T >::size(), and updateActionRects().
Referenced by scrollMenu(), and scrollMenu().
void QMenuPrivate::setCurrentAction | ( | QAction * | action, |
int | popup = -1 , |
||
SelectionReason | reason = SelectedFromElsewhere , |
||
bool | activateFirst = false |
||
) |
Definition at line 686 of file qmenu.cpp.
References QWidget::focusPolicy, QAction::Hover, QAction::isEnabled(), QAction::isSeparator(), menu, Qt::NoFocus, QMenu::popup(), Qt::PopupFocusReason, qFadeEffect(), qScrollEffect(), QWidget::setFocus(), QStyle::SH_Menu_AllowActiveAndDisabled, QAction::showStatusText(), Qt::TabFocusReason, QWidget::update(), and widget.
Referenced by mouseEventTaken(), scrollMenu(), scrollMenu(), and QMenuSloppyState::timeout().
void QMenuPrivate::setFirstActionActive | ( | ) |
Definition at line 662 of file qmenu.cpp.
References QWidget::actions(), QList< T >::at(), QRect::height(), i, QAction::isEnabled(), QRect::isNull(), QAction::isSeparator(), QWidget::rect, QWidget::scroll(), QStyle::SH_Menu_AllowActiveAndDisabled, and QList< T >::size().
Definition at line 910 of file qmenu.cpp.
References QObject::connect(), QObject::destroyed(), QObject::disconnect(), QMenu::menuAction(), SIGNAL, and SLOT.
void QMenuPrivate::setPlatformMenu | ( | QPlatformMenu * | menu | ) |
Definition at line 191 of file qmenu.cpp.
References QMenu::aboutToHide(), QMenu::aboutToShow(), QObject::connect(), menu, QObject::parent(), QMenu::platformMenu(), SIGNAL, and SLOT.
void QMenuPrivate::setSyncAction | ( | ) |
Definition at line 644 of file qmenu.cpp.
References QAction::isEnabled(), QAction::isSeparator(), and QAction::menu().
void QMenuPrivate::syncPlatformMenu | ( | ) |
Definition at line 204 of file qmenu.cpp.
References QWidget::actions(), it, QMenu::platformMenu(), QList< T >::rbegin(), QList< T >::rend(), QPlatformMenu::setEnabled(), and QPlatformMenu::syncSeparatorsCollapsible().
QWidget * QMenuPrivate::topCausedWidget | ( | ) | const |
Definition at line 890 of file qmenu.cpp.
Referenced by activateAction(), and popup().
QWindow * QMenuPrivate::transientParentWindow | ( | ) | const |
Definition at line 602 of file qmenu.cpp.
References QObject::parent(), and QWidget::window().
void QMenuPrivate::updateActionRects | ( | ) | const |
Definition at line 326 of file qmenu.cpp.
Referenced by popup(), scrollMenu(), scrollMenu(), and scrollMenu().
Definition at line 331 of file qmenu.cpp.
References QWidget::actions(), QList< T >::at(), QFontMetrics::boundingRect(), QStyle::CT_Menu, QStyle::CT_MenuItem, QSize::expandedTo(), QStyleOption::fontMetrics, QFontMetrics::height(), QRect::height(), QSize::height(), QFontMetrics::horizontalAdvance(), i, QAction::icon, QString::indexOf(), QStyleOption::initFrom(), QAction::isCheckable(), QString::isEmpty(), QKeySequence::isEmpty(), QSize::isEmpty(), QIcon::isNull(), QRect::isNull(), QAction::isSeparator(), QAction::isShortcutVisibleInContextMenu(), QAction::isVisible(), QKeySequence::NativeText, opt, QStyle::pixelMetric(), QStyle::PM_MenuDesktopFrameWidth, QStyle::PM_MenuHMargin, QStyle::PM_MenuPanelWidth, QStyle::PM_MenuTearoffHeight, QStyle::PM_MenuVMargin, QStyle::PM_SmallIconSize, qMax(), QWidget::rect, QWidget::screen(), QWidget::scroll(), QWidget::setGeometry(), QSize::setHeight(), QWidget::setVisible(), QRect::setWidth(), QSize::setWidth(), QStyle::SH_Menu_SupportsSections, QList< T >::size(), QStyle::sizeFromContents(), QWidget::style(), QAction::text, Qt::TextShowMnemonic, Qt::TextSingleLine, QKeySequence::toString(), QRect::translate(), widget, QSize::width(), and QWidget::width.
void QMenuPrivate::updateLayoutDirection | ( | ) |
Definition at line 927 of file qmenu.cpp.
References QGuiApplication::layoutDirection, QWidget::parentWidget(), and Qt::WA_SetLayoutDirection.
Referenced by popup().
|
inline |
Definition at line 287 of file qmenu.cpp.
References QStylePrivate::useFullScreenForPopup().
Definition at line 442 of file qmenu_p.h.
Referenced by activateAction().
Definition at line 315 of file qmenu_p.h.
Referenced by popup(), scrollMenu(), scrollMenu(), and scrollMenu().
bool QMenuPrivate::activationRecursionGuard = false |
Definition at line 470 of file qmenu_p.h.
Referenced by _q_actionTriggered(), and activateCausedStack().
Definition at line 395 of file qmenu_p.h.
Referenced by QMenuSloppyState::enter(), mouseEventTaken(), and QMenuSloppyState::timeout().
QMenuCaused QMenuPrivate::causedPopup |
Definition at line 404 of file qmenu_p.h.
Referenced by mouseEventTaken(), and popup().
Definition at line 329 of file qmenu_p.h.
Referenced by popup(), and QMenuSloppyState::timeout().
struct QMenuPrivate::DelayState QMenuPrivate::delayState |
Referenced by QMenuSloppyState::hasParentActiveDelayTimer().
QEventLoop* QMenuPrivate::eventLoop = nullptr |
bool QMenuPrivate::hasReceievedEnter |
Definition at line 480 of file qmenu_p.h.
Referenced by QMenuSloppyState::timeout().
|
mutable |
Definition at line 474 of file qmenu_p.h.
Referenced by popup(), and scrollMenu().
int QMenuPrivate::motions = 0 |
Definition at line 467 of file qmenu_p.h.
Referenced by hasMouseMoved(), and popup().
|
static |
Definition at line 326 of file qmenu_p.h.
Referenced by QMenu::event(), QMenu::hideEvent(), QMenu::initStyleOption(), mouseEventTaken(), QMenu::mouseMoveEvent(), QMenu::mousePressEvent(), and QMenu::mouseReleaseEvent().
QPoint QMenuPrivate::mousePopupPos |
Definition at line 327 of file qmenu_p.h.
Referenced by hasMouseMoved(), and popup().
|
mutable |
QPointer<QPlatformMenu> QMenuPrivate::platformMenu |
Definition at line 440 of file qmenu_p.h.
Referenced by ~QMenuPrivate(), _q_actionTriggered(), and _q_platformMenuAboutToShow().
struct QMenuPrivate::QMenuScroller * QMenuPrivate::scroll = nullptr |
Referenced by ~QMenuPrivate(), mouseEventTaken(), popup(), scrollMenu(), scrollMenu(), and scrollMenu().
ScrollerTearOffItem* QMenuPrivate::scrollDownItem = nullptr |
ScrollerTearOffItem* QMenuPrivate::scrollUpTearOffItem = nullptr |
QBasicTimer QMenuPrivate::searchBufferTimer |
QMenuSloppyState QMenuPrivate::sloppyState |
Definition at line 416 of file qmenu_p.h.
Referenced by mouseEventTaken(), QMenuSloppyState::reset(), and QMenuSloppyState::setSubMenuPopup().
bool QMenuPrivate::tearoff |
Definition at line 485 of file qmenu_p.h.
Referenced by mouseEventTaken(), and scrollMenu().
bool QMenuPrivate::tearoffHighlighted |
Definition at line 487 of file qmenu_p.h.
Referenced by mouseEventTaken(), and popup().
QPointer<QTornOffMenu> QMenuPrivate::tornPopup |
Definition at line 414 of file qmenu_p.h.
Referenced by mouseEventTaken().
Definition at line 316 of file qmenu_p.h.
Referenced by _q_actionTriggered(), _q_platformMenuAboutToShow(), and scrollMenu().