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
qquicklabsplatformmenuitem_p.h
Go to the documentation of this file.
1
// Copyright (C) 2017 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
ifndef
QQUICKLABSPLATFORMMENUITEM_P_H
6
#
define
QQUICKLABSPLATFORMMENUITEM_P_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists purely as an
13
// implementation detail. This header file may change from version to
14
// version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
QtCore
/
qobject
.
h
>
20
#
include
<
QtCore
/
qurl
.
h
>
21
#
include
<
QtGui
/
qfont
.
h
>
22
#
include
<
QtGui
/
qpa
/
qplatformmenu
.
h
>
23
#
include
<
QtQml
/
qqmlparserstatus
.
h
>
24
#
include
<
QtQml
/
qqml
.
h
>
25
26
#
include
"qquicklabsplatformicon_p.h"
27
28
QT_BEGIN_NAMESPACE
29
30
class
QPlatformMenuItem;
31
class
QQuickLabsPlatformMenu
;
32
class
QQuickLabsPlatformIconLoader
;
33
class
QQuickLabsPlatformMenuItemGroup
;
34
35
class
QQuickLabsPlatformMenuItem
:
public
QObject
,
public
QQmlParserStatus
36
{
37
Q_OBJECT
38
QML_NAMED_ELEMENT(MenuItem)
39
QML_EXTENDED_NAMESPACE
(
QPlatformMenuItem
)
40
Q_INTERFACES
(
QQmlParserStatus
)
41
Q_PROPERTY
(
QQuickLabsPlatformMenu
*
menu
READ
menu
NOTIFY
menuChanged
FINAL
)
42
Q_PROPERTY
(
QQuickLabsPlatformMenu
*
subMenu
READ
subMenu
NOTIFY
subMenuChanged
FINAL
)
43
Q_PROPERTY
(
QQuickLabsPlatformMenuItemGroup
*
group
READ
group
WRITE
setGroup
NOTIFY
groupChanged
FINAL
)
44
Q_PROPERTY
(
bool
enabled
READ
isEnabled
WRITE
setEnabled
NOTIFY
enabledChanged
FINAL
)
45
Q_PROPERTY
(
bool
visible
READ
isVisible
WRITE
setVisible
NOTIFY
visibleChanged
FINAL
)
46
Q_PROPERTY
(
bool
separator
READ
isSeparator
WRITE
setSeparator
NOTIFY
separatorChanged
FINAL
)
47
Q_PROPERTY
(
bool
checkable
READ
isCheckable
WRITE
setCheckable
NOTIFY
checkableChanged
FINAL
)
48
Q_PROPERTY
(
bool
checked
READ
isChecked
WRITE
setChecked
NOTIFY
checkedChanged
FINAL
)
49
Q_PROPERTY
(
QPlatformMenuItem
::
MenuRole
role
READ
role
WRITE
setRole
NOTIFY
roleChanged
FINAL
)
50
Q_PROPERTY
(
QString
text
READ
text
WRITE
setText
NOTIFY
textChanged
FINAL
)
51
Q_PROPERTY
(
QVariant
shortcut
READ
shortcut
WRITE
setShortcut
NOTIFY
shortcutChanged
FINAL
)
52
Q_PROPERTY
(
QFont
font
READ
font
WRITE
setFont
NOTIFY
fontChanged
FINAL
)
53
Q_PROPERTY
(
QQuickLabsPlatformIcon
icon
READ
icon
WRITE
setIcon
NOTIFY
iconChanged
FINAL
REVISION
(1, 1))
54
55
public
:
56
explicit
QQuickLabsPlatformMenuItem
(
QObject
*
parent
=
nullptr
);
57
~
QQuickLabsPlatformMenuItem
();
58
59
QPlatformMenuItem *
handle
()
const
;
60
QPlatformMenuItem *
create
();
61
void
sync
();
62
63
QQuickLabsPlatformMenu
*
menu
()
const
;
64
void
setMenu
(
QQuickLabsPlatformMenu
* menu);
65
66
QQuickLabsPlatformMenu
*
subMenu
()
const
;
67
void
setSubMenu
(
QQuickLabsPlatformMenu
*menu);
68
69
QQuickLabsPlatformMenuItemGroup
*
group
()
const
;
70
void
setGroup
(
QQuickLabsPlatformMenuItemGroup
*group);
71
72
bool
isEnabled
()
const
;
73
void
setEnabled
(
bool
enabled);
74
75
bool
isVisible
()
const
;
76
void
setVisible
(
bool
visible);
77
78
bool
isSeparator
()
const
;
79
void
setSeparator
(
bool
separator);
80
81
bool
isCheckable
()
const
;
82
void
setCheckable
(
bool
checkable);
83
84
bool
isChecked
()
const
;
85
void
setChecked
(
bool
checked);
86
87
QPlatformMenuItem
::
MenuRole
role
()
const
;
88
void
setRole
(QPlatformMenuItem::MenuRole role);
89
90
QString
text
()
const
;
91
void
setText
(
const
QString &text);
92
93
QVariant
shortcut
()
const
;
94
void
setShortcut
(
const
QVariant& shortcut);
95
96
QFont
font
()
const
;
97
void
setFont
(
const
QFont &font);
98
99
QQuickLabsPlatformIcon
icon
()
const
;
100
void
setIcon
(
const
QQuickLabsPlatformIcon
&icon);
101
102
public
Q_SLOTS
:
103
void
toggle
();
104
105
Q_SIGNALS
:
106
void
triggered
();
107
void
hovered
();
108
109
void
menuChanged
();
110
void
subMenuChanged
();
111
void
groupChanged
();
112
void
enabledChanged
();
113
void
visibleChanged
();
114
void
separatorChanged
();
115
void
checkableChanged
();
116
void
checkedChanged
();
117
void
roleChanged
();
118
void
textChanged
();
119
void
shortcutChanged
();
120
void
fontChanged
();
121
Q_REVISION
(1, 1)
void
iconChanged
();
122
123
protected
:
124
void
classBegin
()
override
;
125
void
componentComplete
()
override
;
126
127
QQuickLabsPlatformIconLoader
*
iconLoader
()
const
;
128
129
bool
event
(QEvent *e)
override
;
130
private
Q_SLOTS
:
131
void
activate
();
132
void
updateIcon();
133
134
private
:
135
void
addShortcut();
136
void
removeShortcut();
137
138
bool
m_complete;
139
bool
m_enabled;
140
bool
m_visible;
141
bool
m_separator;
142
bool
m_checkable;
143
bool
m_checked;
144
QPlatformMenuItem::MenuRole m_role;
145
QString m_text;
146
QVariant m_shortcut;
147
QFont m_font;
148
QQuickLabsPlatformMenu
*m_menu;
149
QQuickLabsPlatformMenu
*m_subMenu;
150
QQuickLabsPlatformMenuItemGroup
*m_group;
151
mutable
QQuickLabsPlatformIconLoader
*m_iconLoader;
152
QPlatformMenuItem *m_handle;
153
int
m_shortcutId = -1;
154
155
friend
class
QQuickLabsPlatformMenu
;
156
friend
class
QQuickLabsPlatformMenuItemGroup
;
157
};
158
159
QT_END_NAMESPACE
160
161
#
endif
// QQUICKLABSPLATFORMMENUITEM_P_H
QQuickLabsPlatformIconLoader
Definition
qquicklabsplatformiconloader_p.h:31
QQuickLabsPlatformIconLoader::setIcon
void setIcon(const QQuickLabsPlatformIcon &icon)
Definition
qquicklabsplatformiconloader.cpp:46
QQuickLabsPlatformIconLoader::icon
QQuickLabsPlatformIcon icon() const
Definition
qquicklabsplatformiconloader.cpp:41
QQuickLabsPlatformIconLoader::setEnabled
void setEnabled(bool enabled)
Definition
qquicklabsplatformiconloader.cpp:26
QQuickLabsPlatformIcon
Definition
qquicklabsplatformicon_p.h:30
QQuickLabsPlatformIcon::operator==
bool operator==(const QQuickLabsPlatformIcon &other) const
Definition
qquicklabsplatformicon.cpp:39
QQuickLabsPlatformMenuBar
Definition
qquicklabsplatformmenubar_p.h:32
QQuickLabsPlatformMenuBar::~QQuickLabsPlatformMenuBar
~QQuickLabsPlatformMenuBar()
Definition
qquicklabsplatformmenubar.cpp:85
QQuickLabsPlatformMenuBar::data
QQmlListProperty< QObject > data()
QQuickLabsPlatformMenuBar::removeMenu
Q_INVOKABLE void removeMenu(QQuickLabsPlatformMenu *menu)
\qmlmethod void Qt.labs.platform::MenuBar::removeMenu(Menu menu)
Definition
qquicklabsplatformmenubar.cpp:184
QQuickLabsPlatformMenuBar::setWindow
void setWindow(QWindow *window)
Definition
qquicklabsplatformmenubar.cpp:137
QQuickLabsPlatformMenuBar::data_count
static qsizetype data_count(QQmlListProperty< QObject > *property)
Definition
qquicklabsplatformmenubar.cpp:256
QQuickLabsPlatformMenuBar::menus_count
static qsizetype menus_count(QQmlListProperty< QQuickLabsPlatformMenu > *property)
Definition
qquicklabsplatformmenubar.cpp:280
QQuickLabsPlatformMenuBar::findWindow
QWindow * findWindow() const
Definition
qquicklabsplatformmenubar.cpp:231
QQuickLabsPlatformMenuBar::clear
Q_INVOKABLE void clear()
\qmlmethod void Qt.labs.platform::MenuBar::clear()
Definition
qquicklabsplatformmenubar.cpp:201
QQuickLabsPlatformMenuBar::menus_clear
static void menus_clear(QQmlListProperty< QQuickLabsPlatformMenu > *property)
Definition
qquicklabsplatformmenubar.cpp:292
QQuickLabsPlatformMenuBar::menus_at
static QQuickLabsPlatformMenu * menus_at(QQmlListProperty< QQuickLabsPlatformMenu > *property, qsizetype index)
Definition
qquicklabsplatformmenubar.cpp:286
QQuickLabsPlatformMenuBar::data_at
static QObject * data_at(QQmlListProperty< QObject > *property, qsizetype index)
Definition
qquicklabsplatformmenubar.cpp:262
QQuickLabsPlatformMenuBar::classBegin
void classBegin() override
Invoked after class creation, but before any properties have been set.
Definition
qquicklabsplatformmenubar.cpp:218
QQuickLabsPlatformMenuBar::window
QWindow * window() const
\qmlproperty Window Qt.labs.platform::MenuBar::window
Definition
qquicklabsplatformmenubar.cpp:132
QQuickLabsPlatformMenuBar::windowChanged
void windowChanged()
QQuickLabsPlatformMenuBar::insertMenu
Q_INVOKABLE void insertMenu(int index, QQuickLabsPlatformMenu *menu)
\qmlmethod void Qt.labs.platform::MenuBar::insertMenu(int index, Menu menu)
Definition
qquicklabsplatformmenubar.cpp:164
QQuickLabsPlatformMenuBar::data_clear
static void data_clear(QQmlListProperty< QObject > *property)
Definition
qquicklabsplatformmenubar.cpp:268
QQuickLabsPlatformMenuBar::componentComplete
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
Definition
qquicklabsplatformmenubar.cpp:222
QQuickLabsPlatformMenuBar::menus
QQmlListProperty< QQuickLabsPlatformMenu > menus()
QQuickLabsPlatformMenuBar::menus_append
static void menus_append(QQmlListProperty< QQuickLabsPlatformMenu > *property, QQuickLabsPlatformMenu *menu)
Definition
qquicklabsplatformmenubar.cpp:274
QQuickLabsPlatformMenuBar::addMenu
Q_INVOKABLE void addMenu(QQuickLabsPlatformMenu *menu)
\qmlmethod void Qt.labs.platform::MenuBar::addMenu(Menu menu)
Definition
qquicklabsplatformmenubar.cpp:154
QQuickLabsPlatformMenuBar::handle
QPlatformMenuBar * handle() const
Definition
qquicklabsplatformmenubar.cpp:93
QQuickLabsPlatformMenuItemGroup
Definition
qquicklabsplatformmenuitemgroup_p.h:30
QQuickLabsPlatformMenuItem
Definition
qquicklabsplatformmenuitem_p.h:36
QQuickLabsPlatformMenuItem::group
QQuickLabsPlatformMenuItemGroup * group() const
\qmlproperty MenuItemGroup Qt.labs.platform::MenuItem::group
Definition
qquicklabsplatformmenuitem.cpp:216
QQuickLabsPlatformMenuItem::font
QFont font() const
\qmlproperty font Qt.labs.platform::MenuItem::font
Definition
qquicklabsplatformmenuitem.cpp:491
QQuickLabsPlatformMenuItem::text
QString text() const
\qmlproperty string Qt.labs.platform::MenuItem::text
Definition
qquicklabsplatformmenuitem.cpp:419
QQuickLabsPlatformMenuItem::groupChanged
void groupChanged()
QQuickLabsPlatformMenuItem::textChanged
void textChanged()
QQuickLabsPlatformMenuItem::setText
void setText(const QString &text)
Definition
qquicklabsplatformmenuitem.cpp:424
QQuickLabsPlatformMenuItem::menuChanged
void menuChanged()
QQuickLabsPlatformMenuItem::iconLoader
QQuickLabsPlatformIconLoader * iconLoader() const
Definition
qquicklabsplatformmenuitem.cpp:564
QQuickLabsPlatformMenuItem::fontChanged
void fontChanged()
QQuickLabsPlatformMenuItem::subMenu
QQuickLabsPlatformMenu * subMenu() const
\readonly \qmlproperty Menu Qt.labs.platform::MenuItem::subMenu
Definition
qquicklabsplatformmenuitem.cpp:195
QQuickLabsPlatformMenuItem::Q_REVISION
Q_REVISION(1, 1) void iconChanged()
QQuickLabsPlatformMenuItem::checkedChanged
void checkedChanged()
QQuickLabsPlatformMenuItem::subMenuChanged
void subMenuChanged()
QQuickLabsPlatformMenuItem::setVisible
void setVisible(bool visible)
Definition
qquicklabsplatformmenuitem.cpp:287
QQuickLabsPlatformMenuItem::menu
QQuickLabsPlatformMenu * menu() const
\readonly \qmlproperty Menu Qt.labs.platform::MenuItem::menu
Definition
qquicklabsplatformmenuitem.cpp:174
QQuickLabsPlatformMenuItem::isChecked
bool isChecked() const
\qmlproperty bool Qt.labs.platform::MenuItem::checked
Definition
qquicklabsplatformmenuitem.cpp:358
QQuickLabsPlatformMenuItem::setIcon
void setIcon(const QQuickLabsPlatformIcon &icon)
Definition
qquicklabsplatformmenuitem.cpp:532
QQuickLabsPlatformMenuItem::isCheckable
bool isCheckable() const
\qmlproperty bool Qt.labs.platform::MenuItem::checkable
Definition
qquicklabsplatformmenuitem.cpp:335
QQuickLabsPlatformMenuItem::hovered
void hovered()
QQuickLabsPlatformMenuItem::isEnabled
bool isEnabled() const
\qmlproperty bool Qt.labs.platform::MenuItem::enabled
Definition
qquicklabsplatformmenuitem.cpp:253
QQuickLabsPlatformMenuItem::setRole
void setRole(QPlatformMenuItem::MenuRole role)
Definition
qquicklabsplatformmenuitem.cpp:404
QQuickLabsPlatformMenuItem::visibleChanged
void visibleChanged()
QQuickLabsPlatformMenuItem::setMenu
void setMenu(QQuickLabsPlatformMenu *menu)
Definition
qquicklabsplatformmenuitem.cpp:179
QQuickLabsPlatformMenuItem::sync
void sync()
Definition
qquicklabsplatformmenuitem.cpp:126
QQuickLabsPlatformMenuItem::event
bool event(QEvent *e) override
This virtual function receives events to an object and should return true if the event e was recogniz...
Definition
qquicklabsplatformmenuitem.cpp:458
QQuickLabsPlatformMenuItem::setEnabled
void setEnabled(bool enabled)
Definition
qquicklabsplatformmenuitem.cpp:258
QQuickLabsPlatformMenuItem::setSubMenu
void setSubMenu(QQuickLabsPlatformMenu *menu)
Definition
qquicklabsplatformmenuitem.cpp:200
QQuickLabsPlatformMenuItem::roleChanged
void roleChanged()
QQuickLabsPlatformMenuItem::shortcutChanged
void shortcutChanged()
QQuickLabsPlatformMenuItem::~QQuickLabsPlatformMenuItem
~QQuickLabsPlatformMenuItem()
Definition
qquicklabsplatformmenuitem.cpp:88
QQuickLabsPlatformMenuItem::componentComplete
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
Definition
qquicklabsplatformmenuitem.cpp:556
QQuickLabsPlatformMenuItem::create
QPlatformMenuItem * create()
Definition
qquicklabsplatformmenuitem.cpp:106
QQuickLabsPlatformMenuItem::isVisible
bool isVisible() const
\qmlproperty bool Qt.labs.platform::MenuItem::visible
Definition
qquicklabsplatformmenuitem.cpp:282
QQuickLabsPlatformMenuItem::enabledChanged
void enabledChanged()
QQuickLabsPlatformMenuItem::setFont
void setFont(const QFont &font)
Definition
qquicklabsplatformmenuitem.cpp:496
QQuickLabsPlatformMenuItem::role
QPlatformMenuItem::MenuRole role() const
\qmlproperty enumeration Qt.labs.platform::MenuItem::role
Definition
qquicklabsplatformmenuitem.cpp:399
QQuickLabsPlatformMenuItem::setGroup
void setGroup(QQuickLabsPlatformMenuItemGroup *group)
Definition
qquicklabsplatformmenuitem.cpp:221
QQuickLabsPlatformMenuItem::separatorChanged
void separatorChanged()
QQuickLabsPlatformMenuItem::isSeparator
bool isSeparator() const
\qmlproperty bool Qt.labs.platform::MenuItem::separator
Definition
qquicklabsplatformmenuitem.cpp:307
QQuickLabsPlatformMenuItem::setChecked
void setChecked(bool checked)
Definition
qquicklabsplatformmenuitem.cpp:363
QQuickLabsPlatformMenuItem::setSeparator
void setSeparator(bool separator)
Definition
qquicklabsplatformmenuitem.cpp:312
QQuickLabsPlatformMenuItem::icon
QQuickLabsPlatformIcon icon() const
Definition
qquicklabsplatformmenuitem.cpp:524
QQuickLabsPlatformMenuItem::setCheckable
void setCheckable(bool checkable)
Definition
qquicklabsplatformmenuitem.cpp:340
QQuickLabsPlatformMenuItem::handle
QPlatformMenuItem * handle() const
Definition
qquicklabsplatformmenuitem.cpp:101
QQuickLabsPlatformMenuItem::checkableChanged
void checkableChanged()
QQuickLabsPlatformMenuItem::classBegin
void classBegin() override
Invoked after class creation, but before any properties have been set.
Definition
qquicklabsplatformmenuitem.cpp:552
QQuickLabsPlatformMenuItem::shortcut
QVariant shortcut() const
\qmlproperty keysequence Qt.labs.platform::MenuItem::shortcut
Definition
qquicklabsplatformmenuitem.cpp:453
QQuickLabsPlatformMenuItem::setShortcut
void setShortcut(const QVariant &shortcut)
Definition
qquicklabsplatformmenuitem.cpp:472
QQuickLabsPlatformMenu
Definition
qquicklabsplatformmenu_p.h:44
QQuickLabsPlatformMenu::items_at
static QQuickLabsPlatformMenuItem * items_at(QQmlListProperty< QQuickLabsPlatformMenuItem > *property, qsizetype index)
Definition
qquicklabsplatformmenu.cpp:812
QQuickLabsPlatformMenu::sync
void sync()
Definition
qquicklabsplatformmenu.cpp:233
QQuickLabsPlatformMenu::data_at
static QObject * data_at(QQmlListProperty< QObject > *property, qsizetype index)
Definition
qquicklabsplatformmenu.cpp:788
QQuickLabsPlatformMenu::items_append
static void items_append(QQmlListProperty< QQuickLabsPlatformMenuItem > *property, QQuickLabsPlatformMenuItem *item)
Definition
qquicklabsplatformmenu.cpp:800
QQuickLabsPlatformMenu::Q_REVISION
Q_REVISION(1, 1) void iconChanged()
QQuickLabsPlatformMenu::menuBar
QQuickLabsPlatformMenuBar * menuBar() const
\readonly \qmlproperty MenuBar Qt.labs.platform::Menu::menuBar
Definition
qquicklabsplatformmenu.cpp:288
QQuickLabsPlatformMenu::isVisible
bool isVisible() const
\qmlproperty bool Qt.labs.platform::Menu::visible
Definition
qquicklabsplatformmenu.cpp:398
QQuickLabsPlatformMenu::insertItem
Q_INVOKABLE void insertItem(int index, QQuickLabsPlatformMenuItem *item)
\qmlmethod void Qt.labs.platform::Menu::insertItem(int index, MenuItem item)
Definition
qquicklabsplatformmenu.cpp:548
QQuickLabsPlatformMenu::minimumWidthChanged
void minimumWidthChanged()
QQuickLabsPlatformMenu::font
QFont font() const
\qmlproperty font Qt.labs.platform::Menu::font
Definition
qquicklabsplatformmenu.cpp:490
QQuickLabsPlatformMenu::items_clear
static void items_clear(QQmlListProperty< QQuickLabsPlatformMenuItem > *property)
Definition
qquicklabsplatformmenu.cpp:818
QQuickLabsPlatformMenu::title
QString title() const
\qmlproperty string Qt.labs.platform::Menu::title
Definition
qquicklabsplatformmenu.cpp:465
QQuickLabsPlatformMenu::setMinimumWidth
void setMinimumWidth(int width)
Definition
qquicklabsplatformmenu.cpp:426
QQuickLabsPlatformMenu::removeMenu
Q_INVOKABLE void removeMenu(QQuickLabsPlatformMenu *menu)
\qmlmethod void Qt.labs.platform::Menu::removeMenu(Menu submenu)
Definition
qquicklabsplatformmenu.cpp:611
QQuickLabsPlatformMenu::fontChanged
void fontChanged()
QQuickLabsPlatformMenu::create
QPlatformMenu * create()
Definition
qquicklabsplatformmenu.cpp:180
QQuickLabsPlatformMenu::data_count
static qsizetype data_count(QQmlListProperty< QObject > *property)
Definition
qquicklabsplatformmenu.cpp:782
QQuickLabsPlatformMenu::icon
QQuickLabsPlatformIcon icon() const
Definition
qquicklabsplatformmenu.cpp:513
QQuickLabsPlatformMenu::iconLoader
QQuickLabsPlatformIconLoader * iconLoader() const
Definition
qquicklabsplatformmenu.cpp:726
QQuickLabsPlatformMenu::setVisible
void setVisible(bool visible)
Definition
qquicklabsplatformmenu.cpp:403
QQuickLabsPlatformMenu::parentMenu
QQuickLabsPlatformMenu * parentMenu() const
\readonly \qmlproperty Menu Qt.labs.platform::Menu::parentMenu
Definition
qquicklabsplatformmenu.cpp:310
QQuickLabsPlatformMenu::typeChanged
void typeChanged()
QQuickLabsPlatformMenu::addMenu
Q_INVOKABLE void addMenu(QQuickLabsPlatformMenu *menu)
\qmlmethod void Qt.labs.platform::Menu::addMenu(Menu submenu)
Definition
qquicklabsplatformmenu.cpp:587
QQuickLabsPlatformMenu::removeItem
Q_INVOKABLE void removeItem(QQuickLabsPlatformMenuItem *item)
\qmlmethod void Qt.labs.platform::Menu::removeItem(MenuItem item)
Definition
qquicklabsplatformmenu.cpp:569
QQuickLabsPlatformMenu::setIcon
void setIcon(const QQuickLabsPlatformIcon &icon)
Definition
qquicklabsplatformmenu.cpp:521
QQuickLabsPlatformMenu::items_count
static qsizetype items_count(QQmlListProperty< QQuickLabsPlatformMenuItem > *property)
Definition
qquicklabsplatformmenu.cpp:806
QQuickLabsPlatformMenu::setEnabled
void setEnabled(bool enabled)
Definition
qquicklabsplatformmenu.cpp:380
QQuickLabsPlatformMenu::clear
Q_INVOKABLE void clear()
\qmlmethod void Qt.labs.platform::Menu::clear()
Definition
qquicklabsplatformmenu.cpp:625
QQuickLabsPlatformMenu::setFont
void setFont(const QFont &font)
Definition
qquicklabsplatformmenu.cpp:495
QQuickLabsPlatformMenu::componentComplete
void componentComplete() override
Invoked after the root component that caused this instantiation has completed construction.
Definition
qquicklabsplatformmenu.cpp:718
QQuickLabsPlatformMenu::addItem
Q_INVOKABLE void addItem(QQuickLabsPlatformMenuItem *item)
\qmlmethod void Qt.labs.platform::Menu::addItem(MenuItem item)
Definition
qquicklabsplatformmenu.cpp:538
QQuickLabsPlatformMenu::setType
void setType(QPlatformMenu::MenuType type)
Definition
qquicklabsplatformmenu.cpp:450
QQuickLabsPlatformMenu::data_append
static void data_append(QQmlListProperty< QObject > *property, QObject *object)
Definition
qquicklabsplatformmenu.cpp:771
QQuickLabsPlatformMenu::visibleChanged
void visibleChanged()
QQuickLabsPlatformMenu::data
QQmlListProperty< QObject > data()
QQuickLabsPlatformMenu::insertMenu
Q_INVOKABLE void insertMenu(int index, QQuickLabsPlatformMenu *menu)
\qmlmethod void Qt.labs.platform::Menu::insertMenu(int index, Menu submenu)
Definition
qquicklabsplatformmenu.cpp:597
QQuickLabsPlatformMenu::enabledChanged
void enabledChanged()
QQuickLabsPlatformMenu::~QQuickLabsPlatformMenu
~QQuickLabsPlatformMenu()
Definition
qquicklabsplatformmenu.cpp:151
QQuickLabsPlatformMenu::minimumWidth
int minimumWidth() const
\qmlproperty int Qt.labs.platform::Menu::minimumWidth
Definition
qquicklabsplatformmenu.cpp:421
QQuickLabsPlatformMenu::type
QPlatformMenu::MenuType type() const
\qmlproperty enumeration Qt.labs.platform::Menu::type
Definition
qquicklabsplatformmenu.cpp:445
QQuickLabsPlatformMenu::menuItem
QQuickLabsPlatformMenuItem * menuItem() const
\readonly \qmlproperty MenuItem Qt.labs.platform::Menu::menuItem
Definition
qquicklabsplatformmenu.cpp:355
QQuickLabsPlatformMenu::titleChanged
void titleChanged()
QQuickLabsPlatformMenu::items
QQmlListProperty< QQuickLabsPlatformMenuItem > items()
QQuickLabsPlatformMenu::data_clear
static void data_clear(QQmlListProperty< QObject > *property)
Definition
qquicklabsplatformmenu.cpp:794
QQuickLabsPlatformMenu::handle
QPlatformMenu * handle() const
Definition
qquicklabsplatformmenu.cpp:175
QQuickLabsPlatformMenu::close
void close()
\qmlmethod void Qt.labs.platform::Menu::close()
Definition
qquicklabsplatformmenu.cpp:708
QQuickLabsPlatformMenu::isEnabled
bool isEnabled() const
\qmlproperty bool Qt.labs.platform::Menu::enabled
Definition
qquicklabsplatformmenu.cpp:375
QQuickLabsPlatformMenu::aboutToHide
void aboutToHide()
QQuickLabsPlatformMenu::itemsChanged
void itemsChanged()
QQuickLabsPlatformMenu::classBegin
void classBegin() override
Invoked after class creation, but before any properties have been set.
Definition
qquicklabsplatformmenu.cpp:714
QQuickLabsPlatformMenu::setMenuBar
void setMenuBar(QQuickLabsPlatformMenuBar *menuBar)
Definition
qquicklabsplatformmenu.cpp:293
QQuickLabsPlatformMenu::parentMenuChanged
void parentMenuChanged()
QQuickLabsPlatformMenu::menuBarChanged
void menuBarChanged()
QQuickLabsPlatformMenu::setTitle
void setTitle(const QString &title)
Definition
qquicklabsplatformmenu.cpp:470
QQuickLabsPlatformMenu::setParentMenu
void setParentMenu(QQuickLabsPlatformMenu *menu)
Definition
qquicklabsplatformmenu.cpp:315
QQuickLabsPlatformMenu::findWindow
QWindow * findWindow(QQuickItem *target, QPoint *offset) const
Definition
qquicklabsplatformmenu.cpp:748
QQuickLabsPlatformMenu::systemTrayIconChanged
void systemTrayIconChanged()
QQuickLabsPlatformMenu::destroy
void destroy()
Definition
qquicklabsplatformmenu.cpp:220
QQuickLabsPlatformSystemTrayIcon
Definition
qquicklabsplatformsystemtrayicon_p.h:35
QPlatformGraphicsBufferHelper
\inmodule QtGui
QWidgetPlatform
Definition
qwidgetplatform_p.h:61
effectiveWindow
static QWindow * effectiveWindow(QWindow *window, QPoint *offset)
Definition
qquicklabsplatformmenu.cpp:737
qtdeclarative
src
labs
platform
qquicklabsplatformmenuitem_p.h
Generated on
for Qt by
1.14.0