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
5
#
include
"qplatformmenu.h"
6
7
#
include
<
qpa
/
qplatformtheme
.
h
>
8
#
include
<
private
/
qguiapplication_p
.
h
>
9
10
QT_BEGIN_NAMESPACE
11
12
QPlatformMenuItem::QPlatformMenuItem()
13
{
14
m_tag =
reinterpret_cast
<quintptr>(
this
);
15
}
16
17
void
QPlatformMenuItem::setTag(quintptr tag)
18
{
19
m_tag = tag;
20
}
21
22
quintptr QPlatformMenuItem::tag()
const
23
{
24
return
m_tag;
25
}
26
27
QPlatformMenu::QPlatformMenu()
28
{
29
m_tag =
reinterpret_cast
<quintptr>(
this
);
30
}
31
32
void
QPlatformMenu::setTag(quintptr tag)
33
{
34
m_tag = tag;
35
}
36
37
quintptr QPlatformMenu::tag()
const
38
{
39
return
m_tag;
40
41
}
42
43
QPlatformMenuItem *QPlatformMenu::createMenuItem()
const
44
{
45
return
QGuiApplicationPrivate::platformTheme()->createPlatformMenuItem();
46
}
47
48
QPlatformMenu *QPlatformMenu::createSubMenu()
const
49
{
50
return
QGuiApplicationPrivate::platformTheme()->createPlatformMenu();
51
}
52
53
QPlatformMenu *QPlatformMenuBar::createMenu()
const
54
{
55
return
QGuiApplicationPrivate::platformTheme()->createPlatformMenu();
56
}
57
58
QT_END_NAMESPACE
59
60
#
include
"moc_qplatformmenu.cpp"
QPlatformGraphicsBufferHelper
\inmodule QtGui
qtbase
src
gui
kernel
qplatformmenu.cpp
Generated on
for Qt by
1.14.0