Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include <qquickmenubar_p_p.h>
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 28 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().
void QQuickMenuBarPrivate::activateNextItem | ( | ) |
Definition at line 131 of file qquickmenubar.cpp.
References activateItem(), QQuickContainerPrivate::contentModel, QQmlObjectModel::count(), currentItem, QQmlObjectModel::indexOf(), and QQuickContainerPrivate::itemAt().
void QQuickMenuBarPrivate::activatePreviousItem | ( | ) |
Definition at line 139 of file qquickmenubar.cpp.
References activateItem(), QQuickContainerPrivate::contentModel, QQmlObjectModel::count(), currentItem, QQmlObjectModel::indexOf(), and QQuickContainerPrivate::itemAt().
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().
void QQuickMenuBarPrivate::completeCreateItem | ( | ) |
Definition at line 74 of file qquickmenubar.cpp.
References QQmlComponent::completeCreate(), and delegate.
Referenced by createItem().
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().
|
static |
Definition at line 221 of file qquickmenubar.cpp.
References QQuickContainerPrivate::contentData_append(), get(), menu, and menuBar.
Referenced by contentData().
QQuickItem * QQuickMenuBarPrivate::createItem | ( | QQuickMenu * | menu | ) |
Definition at line 82 of file qquickmenubar.cpp.
References beginCreateItem(), completeCreateItem(), item, and menu.
|
overridevirtual |
Reimplemented from QQuickControlPrivate.
Definition at line 253 of file qquickmenubar.cpp.
References QQuickTheme::MenuBar, and QQuickTheme::palette().
|
inlinestatic |
Definition at line 33 of file qquickmenubar_p_p.h.
References menuBar.
Referenced by contentData_append(), and menus_clear().
|
overridevirtual |
Reimplemented from QQuickControlPrivate.
Definition at line 194 of file qquickmenubar.cpp.
References QQuickContainerPrivate::contentModel, QQmlObjectModel::count(), i, item, and qMax().
|
overridevirtual |
Reimplemented from QQuickControlPrivate.
Definition at line 181 of file qquickmenubar.cpp.
References QQuickContainerPrivate::contentModel, QQmlObjectModel::count(), i, item, qMax(), and QQuickControlPrivate::spacing.
|
overridevirtual |
Reimplemented from QQuickControlPrivate.
Definition at line 214 of file qquickmenubar.cpp.
References QQuickControlPrivate::contentItem, item, QQuickItemChangeListener::itemImplicitHeightChanged(), and QQuickControlPrivate::updateImplicitContentHeight().
|
overridevirtual |
Reimplemented from QQuickControlPrivate.
Definition at line 207 of file qquickmenubar.cpp.
References QQuickControlPrivate::contentItem, item, QQuickItemChangeListener::itemImplicitWidthChanged(), and QQuickControlPrivate::updateImplicitContentWidth().
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().
|
static |
Definition at line 229 of file qquickmenubar.cpp.
References QMenuBar::addMenu(), and menuBar.
Referenced by menus().
|
static |
Definition at line 241 of file qquickmenubar.cpp.
References menuBar.
Referenced by menus().
|
static |
Definition at line 247 of file qquickmenubar.cpp.
References get(), and menuBar.
Referenced by menus().
|
static |
Definition at line 235 of file qquickmenubar.cpp.
References menuBar.
Referenced by menus().
void QQuickMenuBarPrivate::onItemHovered | ( | ) |
Definition at line 147 of file qquickmenubar.cpp.
References activateItem(), currentItem, QQuickMenuBarItemPrivate::get(), QGraphicsItem::isEnabled(), and item.
Referenced by QQuickMenuBar::itemAdded(), and QQuickMenuBar::itemRemoved().
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().
void QQuickMenuBarPrivate::onMenuAboutToHide | ( | ) |
Definition at line 172 of file qquickmenubar.cpp.
References activateItem(), currentItem, QQuickMenuBarItem::isHighlighted(), popupMode, and triggering.
Referenced by QQuickMenuBar::itemAdded(), and QQuickMenuBar::itemRemoved().
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().
bool QQuickMenuBarPrivate::altPressed = false |
Definition at line 72 of file qquickmenubar_p_p.h.
QPointer<QQuickMenuBarItem> QQuickMenuBarPrivate::currentItem |
Definition at line 74 of file qquickmenubar_p_p.h.
Referenced by activateItem(), activateNextItem(), activatePreviousItem(), onItemHovered(), onItemTriggered(), onMenuAboutToHide(), and toggleCurrentMenu().
QQmlComponent* QQuickMenuBarPrivate::delegate = nullptr |
Definition at line 73 of file qquickmenubar_p_p.h.
Referenced by beginCreateItem(), and completeCreateItem().
bool QQuickMenuBarPrivate::popupMode = false |
Definition at line 70 of file qquickmenubar_p_p.h.
Referenced by activateItem(), onItemTriggered(), onMenuAboutToHide(), and toggleCurrentMenu().
bool QQuickMenuBarPrivate::triggering = false |
Definition at line 71 of file qquickmenubar_p_p.h.
Referenced by onMenuAboutToHide(), and toggleCurrentMenu().
QPointer<QQuickItem> QQuickMenuBarPrivate::windowContentItem |
Definition at line 75 of file qquickmenubar_p_p.h.