diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-07-17 20:24:58 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-07-20 17:47:35 +0200 |
commit | 6034494070041baab95b835a2605c795f0d7166c (patch) | |
tree | c9d9714f8292e119473fa3179841986801e38915 /src/gui/kernel/qplatformmenu.h | |
parent | 3a475d48ee03d1953292a8fe4ef8ab7e3b1e6c37 (diff) |
Move private platform interfaces to private QPA headers
They should not clutter the "public" QPA headers that clients
use to implement new platforms, and having them in the private
headers allows us to check for private configure features.
Change-Id: Ib4b4db96c086d81bb5810392c7c8922fc5b4950d
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'src/gui/kernel/qplatformmenu.h')
-rw-r--r-- | src/gui/kernel/qplatformmenu.h | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/gui/kernel/qplatformmenu.h b/src/gui/kernel/qplatformmenu.h index 6c2abfde5f..8e470aefd3 100644 --- a/src/gui/kernel/qplatformmenu.h +++ b/src/gui/kernel/qplatformmenu.h @@ -166,31 +166,6 @@ public: virtual QPlatformMenu *createMenu() const; }; -// ----------------- QPlatformInterface ----------------- - -QT_END_NAMESPACE -Q_FORWARD_DECLARE_OBJC_CLASS(NSMenu); -QT_BEGIN_NAMESPACE - -namespace QPlatformInterface::Private { - -#if defined(Q_OS_MACOS) -struct Q_GUI_EXPORT QCocoaMenu -{ - QT_DECLARE_PLATFORM_INTERFACE(QCocoaMenu) - virtual NSMenu *nsMenu() const = 0; - virtual void setAsDockMenu() const = 0; -}; - -struct Q_GUI_EXPORT QCocoaMenuBar -{ - QT_DECLARE_PLATFORM_INTERFACE(QCocoaMenuBar) - virtual NSMenu *nsMenu() const = 0; -}; -#endif - -} // QPlatformInterface::Private - QT_END_NAMESPACE #endif |