From 2405aa9d6797dcfb2e47f45f113ee1ebbc201dda Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Tue, 28 Jul 2020 06:11:31 +0200 Subject: Windows QPA: Move mime-type related classes to the new interface MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ø --- src/plugins/platforms/windows/qwindowsapplication.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/plugins/platforms/windows/qwindowsapplication.h') 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; -- cgit v1.2.3