diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-07-28 06:11:31 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-07-28 13:20:23 +0200 |
commit | 2405aa9d6797dcfb2e47f45f113ee1ebbc201dda (patch) | |
tree | ea2b49501545cc98d63304b2751c2840bcf1dffd /src/plugins/platforms/windows/qwindowsapplication.h | |
parent | 904eaec9de3ed9efd446f2ef83c15055d2b2a871 (diff) |
Windows QPA: Move mime-type related classes to the new interface
Move QWindowsMime (which was a public class in Qt 4 and moved to the QPA
plugin in Qt 5) to the platform namespace and add register functions to the
native application.
Move in test code from QtWinExtras.
Task-number: QTBUG-83252
Change-Id: Iaac440e2d5cb370110919921b1eeb779600b5b65
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowsapplication.h')
-rw-r--r-- | src/plugins/platforms/windows/qwindowsapplication.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/plugins/platforms/windows/qwindowsapplication.h b/src/plugins/platforms/windows/qwindowsapplication.h index 6cf8577ab5..6e488e3ed0 100644 --- a/src/plugins/platforms/windows/qwindowsapplication.h +++ b/src/plugins/platforms/windows/qwindowsapplication.h @@ -62,6 +62,11 @@ public: DarkModeHandling darkModeHandling() const override; void setDarkModeHandling(DarkModeHandling handling) override; + void registerMime(QPlatformInterface::Private::QWindowsMime *mime) override; + void unregisterMime(QPlatformInterface::Private::QWindowsMime *mime) override; + + int registerMimeType(const QString &mime) override; + private: WindowActivationBehavior m_windowActivationBehavior = DefaultActivateWindow; TouchWindowTouchTypes m_touchWindowTouchTypes = NormalTouch; |