Qt 6.x
The Qt SDK
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
11
13{
14 m_tag = reinterpret_cast<quintptr>(this);
15}
16
18{
19 m_tag = tag;
20}
21
23{
24 return m_tag;
25}
26
28{
29 m_tag = reinterpret_cast<quintptr>(this);
30}
31
33{
34 m_tag = tag;
35}
36
38{
39 return m_tag;
40
41}
42
44{
46}
47
49{
51}
52
54{
56}
57
59
60#include "moc_qplatformmenu.cpp"
static QPlatformTheme * platformTheme()
virtual QPlatformMenu * createMenu() const
virtual void setTag(quintptr tag)
virtual quintptr tag() const
virtual void setTag(quintptr tag)
virtual QPlatformMenu * createSubMenu() const
virtual quintptr tag() const
virtual QPlatformMenuItem * createMenuItem() const
virtual QPlatformMenuItem * createPlatformMenuItem() const
virtual QPlatformMenu * createPlatformMenu() const
Combined button and popup list for selecting options.
AudioChannelLayoutTag tag
size_t quintptr
Definition qtypes.h:72