![]() |
Qt 6.x
The Qt SDK
|
#include <qquickmenubar_p_p.h>
Inheritance diagram for QQuickMenuBarPrivate:
Collaboration diagram for QQuickMenuBarPrivate:Additional Inherited Members | |
Public Types inherited from QQuickControlPrivate | |
| enum class | UnhideVisibility { Show , Hide } |
Public Types inherited from QQuickItemPrivate | |
| enum | ChangeType { Geometry = 0x01 , SiblingOrder = 0x02 , Visibility = 0x04 , Opacity = 0x08 , Destroyed = 0x10 , Parent = 0x20 , Children = 0x40 , Rotation = 0x80 , ImplicitWidth = 0x100 , ImplicitHeight = 0x200 , Enabled = 0x400 , Focus = 0x800 , AllChanges = 0xFFFFFFFF } |
| enum | ExtraDataTag { NoTag = 0x1 , LeftMouseButtonAccepted = 0x2 } |
| enum | DirtyType { TransformOrigin = 0x00000001 , Transform = 0x00000002 , BasicTransform = 0x00000004 , Position = 0x00000008 , Size = 0x00000010 , ZValue = 0x00000020 , Content = 0x00000040 , Smooth = 0x00000080 , OpacityValue = 0x00000100 , ChildrenChanged = 0x00000200 , ChildrenStackingChanged = 0x00000400 , ParentChanged = 0x00000800 , Clip = 0x00001000 , Window = 0x00002000 , EffectReference = 0x00008000 , Visible = 0x00010000 , HideReference = 0x00020000 , Antialiasing = 0x00040000 , TransformUpdateMask , ComplexTransformUpdateMask = Transform | Window , ContentUpdateMask = Size | Content | Smooth | Window | Antialiasing , ChildrenUpdateMask = ChildrenChanged | ChildrenStackingChanged | EffectReference | Window } |
Public Types inherited from QObjectPrivate | |
| typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
| using | ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData > |
Static Public Attributes inherited from QQuickControlPrivate | |
| static const ChangeTypes | ImplicitSizeChanges = QQuickItemPrivate::ImplicitWidth | QQuickItemPrivate::ImplicitHeight | QQuickItemPrivate::Destroyed |
| Abstract base type providing functionality common to all controls. | |
Protected Member Functions inherited from QQuickPaletteProviderPrivateBase< QQuickItem, QQuickItemPrivate > | |
| void | setCurrentColorGroup () |
Definition at line 26 of file qquickmenubar_p_p.h.
| void QQuickMenuBarPrivate::activateItem | ( | QQuickMenuBarItem * | item | ) |
Definition at line 107 of file qquickmenubar.cpp.
References currentItem, item, menu, QQuickMenuBarItem::menu, popupMode, and QQuickMenuBarItem::setHighlighted().
Referenced by activateNextItem(), activatePreviousItem(), onItemHovered(), onItemTriggered(), and onMenuAboutToHide().
Here is the call graph for this function:
Here is the caller graph for this function:| void QQuickMenuBarPrivate::activateNextItem | ( | ) |
Definition at line 131 of file qquickmenubar.cpp.
References activateItem(), QQuickContainerPrivate::contentModel, QQmlObjectModel::count(), currentItem, QQmlObjectModel::indexOf(), and QQuickContainerPrivate::itemAt().
Here is the call graph for this function:| void QQuickMenuBarPrivate::activatePreviousItem | ( | ) |
Definition at line 139 of file qquickmenubar.cpp.
References activateItem(), QQuickContainerPrivate::contentModel, QQmlObjectModel::count(), currentItem, QQmlObjectModel::indexOf(), and QQuickContainerPrivate::itemAt().
Here is the call graph for this function:| QT_BEGIN_NAMESPACE QQuickItem * QQuickMenuBarPrivate::beginCreateItem | ( | QQuickMenu * | menu | ) |
Provides a window menu bar.
\qmltype MenuBar \inherits Container
! \instantiates QQuickMenuBar \inqmlmodule QtQuick.Controls
MenuBar consists of drop-down menus, and is normally located at the top edge of the window.
\quotefromfile qtquickcontrols-menubar.qml \skipuntil begin \printto skipfrom \skipuntil skipto \printto end
Typically, menus are statically declared as children of the menu bar, but MenuBar also provides API to \l {addMenu}{add}, \l {insertMenu}{insert}, \l {removeMenu}{remove}, and \l {takeMenu}{take} menus dynamically. The menus in a menu bar can be accessed using \l menuAt().
Definition at line 49 of file qquickmenubar.cpp.
References QQmlComponent::beginCreate(), context, QQmlComponent::creationContext(), delegate, item, menu, qmlContext(), qobject_cast< QQuickItem * >(), QQml_setParent_noEvent(), and QGraphicsItem::setParentItem().
Referenced by createItem().
Here is the call graph for this function:
Here is the caller graph for this function:| void QQuickMenuBarPrivate::completeCreateItem | ( | ) |
Definition at line 74 of file qquickmenubar.cpp.
References QQmlComponent::completeCreate(), and delegate.
Referenced by createItem().
Here is the call graph for this function:
Here is the caller graph for this function:| QQmlListProperty< QObject > QQuickMenuBarPrivate::contentData | ( | ) |
Definition at line 419 of file qquickmenubar.cpp.
References contentData_append(), QQuickContainerPrivate::contentData_at(), QQuickContainerPrivate::contentData_clear(), and QQuickContainerPrivate::contentData_count().
Here is the call graph for this function:
|
static |
Definition at line 221 of file qquickmenubar.cpp.
References QQuickContainerPrivate::contentData_append(), createItem(), get(), menu, menuBar, and QQmlListProperty< T >::object.
Referenced by contentData().
Here is the call graph for this function:
Here is the caller graph for this function:| QQuickItem * QQuickMenuBarPrivate::createItem | ( | QQuickMenu * | menu | ) |
Definition at line 82 of file qquickmenubar.cpp.
References beginCreateItem(), completeCreateItem(), item, and menu.
Referenced by contentData_append().
Here is the call graph for this function:
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from QQuickControlPrivate.
Definition at line 253 of file qquickmenubar.cpp.
References QQuickTheme::MenuBar, and QQuickTheme::palette().
Here is the call graph for this function:
|
inlinestatic |
Definition at line 31 of file qquickmenubar_p_p.h.
References menuBar.
Referenced by contentData_append(), and menus_clear().
Here is the caller graph for this function:
|
overridevirtual |
Reimplemented from QQuickControlPrivate.
Definition at line 194 of file qquickmenubar.cpp.
References QQuickContainerPrivate::contentModel, QQmlObjectModel::count(), i, item, and qMax().
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from QQuickControlPrivate.
Definition at line 181 of file qquickmenubar.cpp.
References QQuickContainerPrivate::contentModel, QQmlObjectModel::count(), i, item, qMax(), and QQuickControlPrivate::spacing.
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from QQuickControlPrivate.
Definition at line 214 of file qquickmenubar.cpp.
References QQuickControlPrivate::contentItem, item, QQuickItemChangeListener::itemImplicitHeightChanged(), and QQuickControlPrivate::updateImplicitContentHeight().
Here is the call graph for this function:
|
overridevirtual |
Reimplemented from QQuickControlPrivate.
Definition at line 207 of file qquickmenubar.cpp.
References QQuickControlPrivate::contentItem, item, QQuickItemChangeListener::itemImplicitWidthChanged(), and QQuickControlPrivate::updateImplicitContentWidth().
Here is the call graph for this function:| QQmlListProperty< QQuickMenu > QQuickMenuBarPrivate::menus | ( | ) |
\qmlproperty list<Menu> QtQuick.Controls::MenuBar::menus
This property holds the content width. It is used for calculating the total implicit width of the menu bar.
This property holds the content height. It is used for calculating the total implicit height of the menu bar.
This property holds the list of menus.
The list contains all menus that have been declared in QML as children of the menu bar, and also menus that have been dynamically added or inserted using the \l addMenu() and \l insertMenu() methods, respectively.
Definition at line 409 of file qquickmenubar.cpp.
References menus_append(), menus_at(), menus_clear(), and menus_count().
Here is the call graph for this function:
|
static |
Definition at line 229 of file qquickmenubar.cpp.
References QMenuBar::addMenu(), menuBar, and QQmlListProperty< T >::object.
Referenced by menus().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 241 of file qquickmenubar.cpp.
References menuBar, and QQmlListProperty< T >::object.
Referenced by menus().
Here is the caller graph for this function:
|
static |
Definition at line 247 of file qquickmenubar.cpp.
References QQuickContainerPrivate::contentModel, get(), menuBar, and QQmlListProperty< T >::object.
Referenced by menus().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Definition at line 235 of file qquickmenubar.cpp.
References menuBar, and QQmlListProperty< T >::object.
Referenced by menus().
Here is the caller graph for this function:| void QQuickMenuBarPrivate::onItemHovered | ( | ) |
Definition at line 147 of file qquickmenubar.cpp.
References activateItem(), currentItem, QQuickMenuBarItemPrivate::get(), QGraphicsItem::isEnabled(), item, and QQuickControlPrivate::touchId.
Referenced by QQuickMenuBar::itemAdded(), and QQuickMenuBar::itemRemoved().
Here is the call graph for this function:
Here is the caller graph for this function:| void QQuickMenuBarPrivate::onItemTriggered | ( | ) |
Definition at line 157 of file qquickmenubar.cpp.
References activateItem(), currentItem, item, popupMode, and toggleCurrentMenu().
Referenced by QQuickMenuBar::itemAdded(), and QQuickMenuBar::itemRemoved().
Here is the call graph for this function:
Here is the caller graph for this function:| void QQuickMenuBarPrivate::onMenuAboutToHide | ( | ) |
Definition at line 172 of file qquickmenubar.cpp.
References activateItem(), currentItem, QQuickItem::isEnabled(), QQuickMenuBarItem::isHighlighted(), QQuickControl::isHovered(), popupMode, and triggering.
Referenced by QQuickMenuBar::itemAdded(), and QQuickMenuBar::itemRemoved().
Here is the call graph for this function:
Here is the caller graph for this function:| void QQuickMenuBarPrivate::toggleCurrentMenu | ( | bool | visible, |
| bool | activate | ||
| ) |
Definition at line 89 of file qquickmenubar.cpp.
References currentItem, QQuickItem::forceActiveFocus(), menu, QQuickMenuBarItem::menu, popupMode, QWidget::setVisible(), and triggering.
Referenced by onItemTriggered().
Here is the call graph for this function:
Here is the caller graph for this function:| bool QQuickMenuBarPrivate::altPressed = false |
Definition at line 70 of file qquickmenubar_p_p.h.
| QPointer<QQuickMenuBarItem> QQuickMenuBarPrivate::currentItem |
Definition at line 72 of file qquickmenubar_p_p.h.
Referenced by activateItem(), activateNextItem(), activatePreviousItem(), onItemHovered(), onItemTriggered(), onMenuAboutToHide(), and toggleCurrentMenu().
| QQmlComponent* QQuickMenuBarPrivate::delegate = nullptr |
Definition at line 71 of file qquickmenubar_p_p.h.
Referenced by beginCreateItem(), and completeCreateItem().
| bool QQuickMenuBarPrivate::popupMode = false |
Definition at line 68 of file qquickmenubar_p_p.h.
Referenced by activateItem(), onItemTriggered(), onMenuAboutToHide(), and toggleCurrentMenu().
| bool QQuickMenuBarPrivate::triggering = false |
Definition at line 69 of file qquickmenubar_p_p.h.
Referenced by onMenuAboutToHide(), and toggleCurrentMenu().
| QPointer<QQuickItem> QQuickMenuBarPrivate::windowContentItem |
Definition at line 73 of file qquickmenubar_p_p.h.