Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qcocoamenuloader.h
Go to the documentation of this file.
1
// Copyright (C) 2018 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
// Qt-Security score:significant reason:default
4
5
#
ifndef
QCOCOAMENULOADER_P_H
6
#
define
QCOCOAMENULOADER_P_H
7
8
//
9
// W A R N I N G
10
// -------------
11
//
12
// This file is not part of the Qt API. It exists for the convenience
13
// of qapplication_*.cpp, qwidget*.cpp and qfiledialog.cpp. This header
14
// file may change from version to version without notice, or even be removed.
15
//
16
// We mean it.
17
//
18
19
#
include
<
QtCore
/
private
/
qcore_mac_p
.
h
>
20
21
#
import
<
AppKit
/
NSMenu
.
h
>
22
23
QT_FORWARD_DECLARE_CLASS(
QCocoaMenuItem
);
24
25
QT_DECLARE_NAMESPACED_OBJC_INTERFACE
(QCocoaMenuLoader, NSObject
26
+ (instancetype)sharedMenuLoader;
27
- (
NSMenu
*)menu;
28
- (
void
)ensureAppMenuInMenu:(NSMenu *)menu;
29
- (
NSMenuItem
*)quitMenuItem;
30
- (
NSMenuItem
*)preferencesMenuItem;
31
- (
NSMenuItem
*)aboutMenuItem;
32
- (
NSMenuItem
*)aboutQtMenuItem;
33
- (
NSMenuItem
*)hideMenuItem;
34
- (
NSMenuItem
*)appSpecificMenuItem:(QCocoaMenuItem *)platformItem;
35
- (
void
)qtTranslateApplicationMenu;
36
- (NSArray<NSMenuItem *> *)mergeable;
37
)
38
39
#
endif
// QCOCOAMENULOADER_P_H
QCocoaMenuItem
Definition
qcocoamenuitem.h:53
QT_DECLARE_NAMESPACED_OBJC_INTERFACE
QT_DECLARE_NAMESPACED_OBJC_INTERFACE(QMacAccessibilityElement, NSObject -(void) invalidate;) QT_BEGIN_NAMESPACE bool QAccessibleCache
Definition
qaccessiblecache_mac.mm:8
Q_FORWARD_DECLARE_OBJC_CLASS
Q_FORWARD_DECLARE_OBJC_CLASS(NSMenuItem)
Q_FORWARD_DECLARE_OBJC_CLASS
Q_FORWARD_DECLARE_OBJC_CLASS(NSMenu)
qApp
#define qApp
Definition
qcoreapplication.h:38
qtbase
src
plugins
platforms
cocoa
qcocoamenuloader.h
Generated on
for Qt by
1.18.0