Qt
6.x
The Qt SDK
Loading...
Searching...
No Matches
qandroidplatformmenubar.h
Go to the documentation of this file.
1
// Copyright (C) 2012 BogDan Vatra <bogdan@kde.org>
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4
#ifndef QANDROIDPLATFORMMENUBAR_H
5
#define QANDROIDPLATFORMMENUBAR_H
6
7
#include <qpa/qplatformmenu.h>
8
#include <
qhash.h
>
9
#include <
qlist.h
>
10
#include <
qmutex.h
>
11
12
QT_BEGIN_NAMESPACE
13
14
class
QAndroidPlatformMenu
;
15
class
QAndroidPlatformMenuBar
:
public
QPlatformMenuBar
16
{
17
public
:
18
typedef
QList<QAndroidPlatformMenu *>
PlatformMenusType
;
19
public
:
20
QAndroidPlatformMenuBar
();
21
~QAndroidPlatformMenuBar
();
22
23
void
insertMenu
(
QPlatformMenu
*
menu
,
QPlatformMenu
*before)
override
;
24
void
removeMenu
(
QPlatformMenu
*
menu
)
override
;
25
void
syncMenu
(
QPlatformMenu
*
menu
)
override
;
26
void
handleReparent
(
QWindow
*newParentWindow)
override
;
27
QPlatformMenu
*
menuForTag
(
quintptr
tag
)
const override
;
28
QPlatformMenu
*
menuForId
(
int
menuId
)
const
;
29
int
menuId
(
QPlatformMenu
*
menu
)
const
;
30
31
QWindow
*
parentWindow
()
const override
;
32
PlatformMenusType
menus
()
const
;
33
QMutex
*
menusListMutex
();
34
35
private
:
36
PlatformMenusType
m_menus;
37
QWindow
*m_parentWindow;
38
QMutex
m_menusListMutex;
39
40
int
m_nextMenuId = 0;
41
QHash<int, QPlatformMenu *>
m_menuHash;
42
};
43
44
QT_END_NAMESPACE
45
46
#endif
// QANDROIDPLATFORMMENUBAR_H
QAndroidPlatformMenuBar
Definition
qandroidplatformmenubar.h:16
QAndroidPlatformMenuBar::QAndroidPlatformMenuBar
QAndroidPlatformMenuBar()
Definition
qandroidplatformmenubar.cpp:10
QAndroidPlatformMenuBar::menus
PlatformMenusType menus() const
Definition
qandroidplatformmenubar.cpp:96
QAndroidPlatformMenuBar::parentWindow
QWindow * parentWindow() const override
Definition
qandroidplatformmenubar.cpp:91
QAndroidPlatformMenuBar::insertMenu
void insertMenu(QPlatformMenu *menu, QPlatformMenu *before) override
Definition
qandroidplatformmenubar.cpp:21
QAndroidPlatformMenuBar::handleReparent
void handleReparent(QWindow *newParentWindow) override
Definition
qandroidplatformmenubar.cpp:68
QAndroidPlatformMenuBar::syncMenu
void syncMenu(QPlatformMenu *menu) override
Definition
qandroidplatformmenubar.cpp:63
QAndroidPlatformMenuBar::menuId
int menuId(QPlatformMenu *menu) const
Definition
qandroidplatformmenubar.cpp:52
QAndroidPlatformMenuBar::menusListMutex
QMutex * menusListMutex()
Definition
qandroidplatformmenubar.cpp:101
QAndroidPlatformMenuBar::menuForId
QPlatformMenu * menuForId(int menuId) const
Definition
qandroidplatformmenubar.cpp:86
QAndroidPlatformMenuBar::menuForTag
QPlatformMenu * menuForTag(quintptr tag) const override
Definition
qandroidplatformmenubar.cpp:76
QAndroidPlatformMenuBar::~QAndroidPlatformMenuBar
~QAndroidPlatformMenuBar()
Definition
qandroidplatformmenubar.cpp:16
QAndroidPlatformMenuBar::removeMenu
void removeMenu(QPlatformMenu *menu) override
Definition
qandroidplatformmenubar.cpp:31
QAndroidPlatformMenuBar::PlatformMenusType
QList< QAndroidPlatformMenu * > PlatformMenusType
Definition
qandroidplatformmenubar.h:18
QAndroidPlatformMenu
Definition
qandroidplatformmenu.h:16
QHash
\inmodule QtCore
Definition
qhash.h:818
QList
Definition
qlist.h:74
QMutex
\inmodule QtCore
Definition
qmutex.h:285
QPlatformMenuBar
Definition
qplatformmenu.h:121
QPlatformMenu
Definition
qplatformmenu.h:72
QWindow
\inmodule QtGui
Definition
qwindow.h:63
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1545
tag
AudioChannelLayoutTag tag
Definition
qcoreaudioutils.mm:175
qhash.h
qlist.h
qmutex.h
quintptr
size_t quintptr
Definition
qtypes.h:72
menu
QMenu menu
[5]
Definition
src_gui_widgets_qmenu.cpp:35
qtbase
src
plugins
platforms
android
qandroidplatformmenubar.h
Generated by
1.9.7