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
qplatformmenu.cpp
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// Copyright (C) 2014 Martin Graesslin <mgraesslin@kde.org>
3
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
// Qt-Security score:significant reason:default
5
6
#
include
"qplatformmenu.h"
7
8
#
include
<
qpa
/
qplatformtheme
.
h
>
9
#
include
<
private
/
qguiapplication_p
.
h
>
10
11
QT_BEGIN_NAMESPACE
12
13
QPlatformMenuItem::QPlatformMenuItem()
14
{
15
m_tag =
reinterpret_cast
<quintptr>(
this
);
16
}
17
18
void
QPlatformMenuItem::setTag(quintptr tag)
19
{
20
m_tag = tag;
21
}
22
23
quintptr QPlatformMenuItem::tag()
const
24
{
25
return
m_tag;
26
}
27
28
QPlatformMenu::QPlatformMenu()
29
{
30
m_tag =
reinterpret_cast
<quintptr>(
this
);
31
}
32
33
void
QPlatformMenu::setTag(quintptr tag)
34
{
35
m_tag = tag;
36
}
37
38
quintptr QPlatformMenu::tag()
const
39
{
40
return
m_tag;
41
42
}
43
44
QPlatformMenuItem *QPlatformMenu::createMenuItem()
const
45
{
46
return
QGuiApplicationPrivate::platformTheme()->createPlatformMenuItem();
47
}
48
49
QPlatformMenu *QPlatformMenu::createSubMenu()
const
50
{
51
return
QGuiApplicationPrivate::platformTheme()->createPlatformMenu();
52
}
53
54
QPlatformMenu *QPlatformMenuBar::createMenu()
const
55
{
56
return
QGuiApplicationPrivate::platformTheme()->createPlatformMenu();
57
}
58
59
QT_END_NAMESPACE
60
61
#
include
"moc_qplatformmenu.cpp"
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qrandomaccessasyncfile_darwin.mm:17
qtbase
src
gui
kernel
qplatformmenu.cpp
Generated on
for Qt by
1.16.1