diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-07-20 13:09:42 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-07-21 14:14:50 +0200 |
commit | 8e48184120f74c02447c8d96408c1c003cd7fd79 (patch) | |
tree | 497028e8f49aa8d2dfe8ecdfd4003eff3d538871 /src/gui/kernel | |
parent | beab436d77476c93d50d8608c15b369044937d7f (diff) |
Start the native interface QWindowsApplication
Implement the static parts of QWindowsWindowFunctions.
Move some things around and make them static in tablet support
to make this easier.
Task-number: QTBUG-83252
Change-Id: I24c3b0b3c6548eb96c4f3285a4e46385a1e79ef5
Reviewed-by: André de la Rocha <andre.rocha@qt.io>
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/gui/kernel')
-rw-r--r-- | src/gui/kernel/qguiapplication_p.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/gui/kernel/qguiapplication_p.h b/src/gui/kernel/qguiapplication_p.h index ddea50e3d0..b79dbd317f 100644 --- a/src/gui/kernel/qguiapplication_p.h +++ b/src/gui/kernel/qguiapplication_p.h @@ -368,6 +368,32 @@ Q_GUI_EXPORT size_t qHash(const QGuiApplicationPrivate::ActiveTouchPointsKey &k, Q_GUI_EXPORT bool operator==(const QGuiApplicationPrivate::ActiveTouchPointsKey &a, const QGuiApplicationPrivate::ActiveTouchPointsKey &b); +// ----------------- QPlatformInterface ----------------- + +namespace QPlatformInterface::Private { + +#if defined(Q_OS_WIN) +struct Q_GUI_EXPORT QWindowsApplication +{ + QT_DECLARE_PLATFORM_INTERFACE(QWindowsApplication) + + enum WindowActivationBehavior { + DefaultActivateWindow, + AlwaysActivateWindow + }; + + virtual WindowActivationBehavior windowActivationBehavior() const = 0; + virtual void setWindowActivationBehavior(WindowActivationBehavior behavior) = 0; + + virtual bool isTabletMode() const = 0; + + virtual bool isWinTabEnabled() const = 0; + virtual bool setWinTabEnabled(bool enabled) = 0; +}; +#endif // Q_OS_WIN + +} // QPlatformInterface::Private + QT_END_NAMESPACE #endif // QGUIAPPLICATION_P_H |