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>.
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"
QGuiApplicationPrivate::platformTheme
static QPlatformTheme * platformTheme()
Definition
qguiapplication_p.h:95
QPlatformMenuBar::createMenu
virtual QPlatformMenu * createMenu() const
Definition
qplatformmenu.cpp:53
QPlatformMenuItem
Definition
qplatformmenu.h:29
QPlatformMenuItem::setTag
virtual void setTag(quintptr tag)
Definition
qplatformmenu.cpp:17
QPlatformMenuItem::QPlatformMenuItem
QPlatformMenuItem()
Definition
qplatformmenu.cpp:12
QPlatformMenuItem::tag
virtual quintptr tag() const
Definition
qplatformmenu.cpp:22
QPlatformMenu
Definition
qplatformmenu.h:72
QPlatformMenu::QPlatformMenu
QPlatformMenu()
Definition
qplatformmenu.cpp:27
QPlatformMenu::setTag
virtual void setTag(quintptr tag)
Definition
qplatformmenu.cpp:32
QPlatformMenu::createSubMenu
virtual QPlatformMenu * createSubMenu() const
Definition
qplatformmenu.cpp:48
QPlatformMenu::tag
virtual quintptr tag() const
Definition
qplatformmenu.cpp:37
QPlatformMenu::createMenuItem
virtual QPlatformMenuItem * createMenuItem() const
Definition
qplatformmenu.cpp:43
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
tag
AudioChannelLayoutTag tag
Definition
qcoreaudioutils.mm:175
qplatformmenu.h
quintptr
size_t quintptr
Definition
qtypes.h:167
qtbase
src
gui
kernel
qplatformmenu.cpp
Generated by
1.10.0