Move the Windows Event Dispatcher into QtGui

Task-number: QTBUG-83255
Change-Id: Ida86f27d7f52b9be48fbea909979320866ff8dae
Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
This commit is contained in:
Friedemann Kleint 2020-05-28 07:12:25 +02:00
parent 15456efa20
commit bc84b7d046
23 changed files with 87 additions and 88 deletions

View File

@ -303,6 +303,7 @@ qt_extend_target(Gui CONDITION WIN32
SOURCES
image/qpixmap_win.cpp
kernel/qwindowdefs_win.h
platform/windows/qwindowsguieventdispatcher.cpp platform/windows/qwindowsguieventdispatcher_p.h
rhi/qrhid3d11.cpp rhi/qrhid3d11_p.h
rhi/qrhid3d11_p_p.h
PUBLIC_LIBRARIES

View File

@ -392,6 +392,7 @@ qt_extend_target(Gui CONDITION WIN32
SOURCES
image/qpixmap_win.cpp
kernel/qwindowdefs_win.h
platform/windows/qwindowsguieventdispatcher.cpp platform/windows/qwindowsguieventdispatcher_p.h
rhi/qrhid3d11.cpp rhi/qrhid3d11_p.h
rhi/qrhid3d11_p_p.h
PUBLIC_LIBRARIES

View File

@ -1,2 +1,3 @@
wasm:include(wasm/wasm.pri)
darwin:include(darwin/darwin.pri)
win32:include(windows/windows.pri)

View File

@ -52,10 +52,11 @@
//
#include <QtCore/private/qeventdispatcher_win_p.h>
#include <QtGui/qtguiglobal.h>
QT_BEGIN_NAMESPACE
class QWindowsGuiEventDispatcher : public QEventDispatcherWin32
class Q_GUI_EXPORT QWindowsGuiEventDispatcher : public QEventDispatcherWin32
{
Q_OBJECT
public:

View File

@ -0,0 +1,2 @@
HEADERS += platform/windows/qwindowsguieventdispatcher_p.h
SOURCES += platform/windows/qwindowsguieventdispatcher.cpp

View File

@ -29,11 +29,6 @@ qt_extend_target(EventDispatcherSupport CONDITION UNIX
qunixeventdispatcher_qpa_p.h
)
qt_extend_target(EventDispatcherSupport CONDITION WIN32
SOURCES
qwindowsguieventdispatcher.cpp qwindowsguieventdispatcher_p.h
)
qt_extend_target(EventDispatcherSupport CONDITION QT_FEATURE_glib
SOURCES
qeventdispatcher_glib.cpp qeventdispatcher_glib_p.h

View File

@ -31,11 +31,6 @@ qt_extend_target(EventDispatcherSupport CONDITION UNIX
qunixeventdispatcher_qpa_p.h
)
qt_extend_target(EventDispatcherSupport CONDITION WIN32
SOURCES
qwindowsguieventdispatcher.cpp qwindowsguieventdispatcher_p.h
)
qt_extend_target(EventDispatcherSupport CONDITION QT_FEATURE_glib
SOURCES
qeventdispatcher_glib.cpp qeventdispatcher_glib_p.h

View File

@ -15,12 +15,6 @@ unix {
HEADERS += \
qunixeventdispatcher_qpa_p.h \
qgenericunixeventdispatcher_p.h
} else {
SOURCES += \
qwindowsguieventdispatcher.cpp
HEADERS += \
qwindowsguieventdispatcher_p.h
}
qtConfig(glib) {

View File

@ -2,7 +2,6 @@ TARGET = qdirect2d
QT += \
core-private gui-private \
eventdispatcher_support-private \
fontdatabase_support-private
LIBS += -ldwmapi -lversion -ld3d11 -ldxgi -ldxguid

View File

@ -16,7 +16,6 @@ qt_internal_add_plugin(QMinimalIntegrationPlugin
PUBLIC_LIBRARIES
Qt::Core
Qt::CorePrivate
Qt::EventDispatcherSupportPrivate
Qt::Gui
Qt::GuiPrivate
)
@ -27,6 +26,11 @@ qt_internal_add_plugin(QMinimalIntegrationPlugin
## Scopes:
#####################################################################
qt_extend_target(QMinimalIntegrationPlugin CONDITION UNIX
PUBLIC_LIBRARIES
Qt::EventDispatcherSupportPrivate
)
qt_extend_target(QMinimalIntegrationPlugin CONDITION NOT APPLE
PUBLIC_LIBRARIES
Qt::FontDatabaseSupportPrivate
@ -37,5 +41,5 @@ qt_extend_target(QMinimalIntegrationPlugin CONDITION QT_FEATURE_freetype
WrapFreetype::WrapFreetype
)
#### Keys ignored in scope 4:.:.:minimal.pro:NOT TARGET___equals____ss_QT_DEFAULT_QPA_PLUGIN:
#### Keys ignored in scope 5:.:.:minimal.pro:NOT TARGET___equals____ss_QT_DEFAULT_QPA_PLUGIN:
# PLUGIN_EXTENDS = "-"

View File

@ -19,7 +19,6 @@ qt_internal_add_plugin(QMinimalIntegrationPlugin
PUBLIC_LIBRARIES
Qt::Core
Qt::CorePrivate
Qt::EventDispatcherSupportPrivate
Qt::Gui
Qt::GuiPrivate
)
@ -30,6 +29,11 @@ qt_internal_add_plugin(QMinimalIntegrationPlugin
## Scopes:
#####################################################################
qt_extend_target(QMinimalIntegrationPlugin CONDITION UNIX
PUBLIC_LIBRARIES
Qt::EventDispatcherSupportPrivate
)
qt_extend_target(QMinimalIntegrationPlugin CONDITION NOT APPLE
PUBLIC_LIBRARIES
Qt::FontDatabaseSupportPrivate
@ -40,5 +44,5 @@ qt_extend_target(QMinimalIntegrationPlugin CONDITION QT_FEATURE_freetype
WrapFreetype::WrapFreetype
)
#### Keys ignored in scope 4:.:.:minimal.pro:NOT TARGET___equals____ss_QT_DEFAULT_QPA_PLUGIN:
#### Keys ignored in scope 5:.:.:minimal.pro:NOT TARGET___equals____ss_QT_DEFAULT_QPA_PLUGIN:
# PLUGIN_EXTENDS = "-"

View File

@ -1,9 +1,9 @@
TARGET = qminimal
QT += \
core-private gui-private \
eventdispatcher_support-private
core-private gui-private
!win32: QT += eventdispatcher_support-private
!darwin: QT += fontdatabase_support-private
DEFINES += QT_NO_FOREACH

View File

@ -17,7 +17,6 @@ qt_internal_add_plugin(QOffscreenIntegrationPlugin
PUBLIC_LIBRARIES
Qt::Core
Qt::CorePrivate
Qt::EventDispatcherSupportPrivate
Qt::Gui
Qt::GuiPrivate
)
@ -28,6 +27,11 @@ qt_internal_add_plugin(QOffscreenIntegrationPlugin
## Scopes:
#####################################################################
qt_extend_target(QOffscreenIntegrationPlugin CONDITION UNIX
PUBLIC_LIBRARIES
Qt::EventDispatcherSupportPrivate
)
qt_extend_target(QOffscreenIntegrationPlugin CONDITION NOT APPLE
PUBLIC_LIBRARIES
Qt::FontDatabaseSupportPrivate
@ -40,5 +44,5 @@ qt_extend_target(QOffscreenIntegrationPlugin CONDITION QT_FEATURE_opengl AND QT_
Qt::GlxSupportPrivate
)
#### Keys ignored in scope 4:.:.:offscreen.pro:NOT TARGET___equals____ss_QT_DEFAULT_QPA_PLUGIN:
#### Keys ignored in scope 5:.:.:offscreen.pro:NOT TARGET___equals____ss_QT_DEFAULT_QPA_PLUGIN:
# PLUGIN_EXTENDS = "-"

View File

@ -18,7 +18,6 @@ qt_internal_add_plugin(QOffscreenIntegrationPlugin
PUBLIC_LIBRARIES
Qt::Core
Qt::CorePrivate
Qt::EventDispatcherSupportPrivate
Qt::Gui
Qt::GuiPrivate
)
@ -29,6 +28,11 @@ qt_internal_add_plugin(QOffscreenIntegrationPlugin
## Scopes:
#####################################################################
qt_extend_target(QOffscreenIntegrationPlugin CONDITION UNIX
PUBLIC_LIBRARIES
Qt::EventDispatcherSupportPrivate
)
qt_extend_target(QOffscreenIntegrationPlugin CONDITION NOT APPLE
PUBLIC_LIBRARIES
Qt::FontDatabaseSupportPrivate
@ -41,5 +45,5 @@ qt_extend_target(QOffscreenIntegrationPlugin CONDITION QT_FEATURE_opengl AND QT_
Qt::GlxSupportPrivate
)
#### Keys ignored in scope 4:.:.:offscreen.pro:NOT TARGET___equals____ss_QT_DEFAULT_QPA_PLUGIN:
#### Keys ignored in scope 5:.:.:offscreen.pro:NOT TARGET___equals____ss_QT_DEFAULT_QPA_PLUGIN:
# PLUGIN_EXTENDS = "-"

View File

@ -1,9 +1,9 @@
TARGET = qoffscreen
QT += \
core-private gui-private \
eventdispatcher_support-private
core-private gui-private
!win32: QT += eventdispatcher_support-private
!darwin: QT += fontdatabase_support-private
DEFINES += QT_NO_FOREACH

View File

@ -50,11 +50,9 @@ qt_internal_add_plugin(QWindowsIntegrationPlugin
PUBLIC_LIBRARIES
Qt::Core
Qt::CorePrivate
Qt::EventDispatcherSupportPrivate
Qt::FontDatabaseSupportPrivate
Qt::Gui
Qt::GuiPrivate
Qt::ThemeSupportPrivate
dwmapi
imm32
oleaut32
@ -93,38 +91,13 @@ qt_extend_target(QWindowsIntegrationPlugin CONDITION QT_FEATURE_opengl
Qt::OpenGLPrivate
)
qt_extend_target(QWindowsIntegrationPlugin CONDITION QT_FEATURE_accessibility
SOURCES
uiautomation/qwindowsuiaaccessibility.cpp uiautomation/qwindowsuiaaccessibility.h
uiautomation/qwindowsuiabaseprovider.cpp uiautomation/qwindowsuiabaseprovider.h
uiautomation/qwindowsuiaexpandcollapseprovider.cpp uiautomation/qwindowsuiaexpandcollapseprovider.h
uiautomation/qwindowsuiagriditemprovider.cpp uiautomation/qwindowsuiagriditemprovider.h
uiautomation/qwindowsuiagridprovider.cpp uiautomation/qwindowsuiagridprovider.h
uiautomation/qwindowsuiainvokeprovider.cpp uiautomation/qwindowsuiainvokeprovider.h
uiautomation/qwindowsuiamainprovider.cpp uiautomation/qwindowsuiamainprovider.h
uiautomation/qwindowsuiaprovidercache.cpp uiautomation/qwindowsuiaprovidercache.h
uiautomation/qwindowsuiarangevalueprovider.cpp uiautomation/qwindowsuiarangevalueprovider.h
uiautomation/qwindowsuiaselectionitemprovider.cpp uiautomation/qwindowsuiaselectionitemprovider.h
uiautomation/qwindowsuiaselectionprovider.cpp uiautomation/qwindowsuiaselectionprovider.h
uiautomation/qwindowsuiatableitemprovider.cpp uiautomation/qwindowsuiatableitemprovider.h
uiautomation/qwindowsuiatableprovider.cpp uiautomation/qwindowsuiatableprovider.h
uiautomation/qwindowsuiatextprovider.cpp uiautomation/qwindowsuiatextprovider.h
uiautomation/qwindowsuiatextrangeprovider.cpp uiautomation/qwindowsuiatextrangeprovider.h
uiautomation/qwindowsuiatoggleprovider.cpp uiautomation/qwindowsuiatoggleprovider.h
uiautomation/qwindowsuiautils.cpp uiautomation/qwindowsuiautils.h
uiautomation/qwindowsuiavalueprovider.cpp uiautomation/qwindowsuiavalueprovider.h
uiautomation/qwindowsuiawindowprovider.cpp uiautomation/qwindowsuiawindowprovider.h
PUBLIC_LIBRARIES
Qt::AccessibilitySupportPrivate
)
qt_extend_target(QWindowsIntegrationPlugin CONDITION QT_FEATURE_directwrite3
DEFINES
QT_USE_DIRECTWRITE2
QT_USE_DIRECTWRITE3
)
#### Keys ignored in scope 5:.:.:windows.pro:NOT TARGET___equals____ss_QT_DEFAULT_QPA_PLUGIN:
#### Keys ignored in scope 4:.:.:windows.pro:NOT TARGET___equals____ss_QT_DEFAULT_QPA_PLUGIN:
# PLUGIN_EXTENDS = "-"
qt_extend_target(QWindowsIntegrationPlugin CONDITION QT_FEATURE_opengl AND NOT QT_FEATURE_dynamicgl
@ -203,6 +176,29 @@ if(QT_FEATURE_imageformat_png)
)
endif()
qt_extend_target(QWindowsIntegrationPlugin CONDITION QT_FEATURE_accessibility
SOURCES
uiautomation/qwindowsuiaaccessibility.cpp uiautomation/qwindowsuiaaccessibility.h
uiautomation/qwindowsuiabaseprovider.cpp uiautomation/qwindowsuiabaseprovider.h
uiautomation/qwindowsuiaexpandcollapseprovider.cpp uiautomation/qwindowsuiaexpandcollapseprovider.h
uiautomation/qwindowsuiagriditemprovider.cpp uiautomation/qwindowsuiagriditemprovider.h
uiautomation/qwindowsuiagridprovider.cpp uiautomation/qwindowsuiagridprovider.h
uiautomation/qwindowsuiainvokeprovider.cpp uiautomation/qwindowsuiainvokeprovider.h
uiautomation/qwindowsuiamainprovider.cpp uiautomation/qwindowsuiamainprovider.h
uiautomation/qwindowsuiaprovidercache.cpp uiautomation/qwindowsuiaprovidercache.h
uiautomation/qwindowsuiarangevalueprovider.cpp uiautomation/qwindowsuiarangevalueprovider.h
uiautomation/qwindowsuiaselectionitemprovider.cpp uiautomation/qwindowsuiaselectionitemprovider.h
uiautomation/qwindowsuiaselectionprovider.cpp uiautomation/qwindowsuiaselectionprovider.h
uiautomation/qwindowsuiatableitemprovider.cpp uiautomation/qwindowsuiatableitemprovider.h
uiautomation/qwindowsuiatableprovider.cpp uiautomation/qwindowsuiatableprovider.h
uiautomation/qwindowsuiatextprovider.cpp uiautomation/qwindowsuiatextprovider.h
uiautomation/qwindowsuiatextrangeprovider.cpp uiautomation/qwindowsuiatextrangeprovider.h
uiautomation/qwindowsuiatoggleprovider.cpp uiautomation/qwindowsuiatoggleprovider.h
uiautomation/qwindowsuiautils.cpp uiautomation/qwindowsuiautils.h
uiautomation/qwindowsuiavalueprovider.cpp uiautomation/qwindowsuiavalueprovider.h
uiautomation/qwindowsuiawindowprovider.cpp uiautomation/qwindowsuiawindowprovider.h
)
qt_extend_target(QWindowsIntegrationPlugin CONDITION MINGW AND QT_FEATURE_accessibility
PUBLIC_LIBRARIES
uuid

View File

@ -51,7 +51,6 @@ qt_internal_add_plugin(QWindowsIntegrationPlugin
PUBLIC_LIBRARIES
Qt::Core
Qt::CorePrivate
Qt::EventDispatcherSupportPrivate
Qt::FontDatabaseSupportPrivate
Qt::Gui
Qt::GuiPrivate
@ -93,36 +92,13 @@ qt_extend_target(QWindowsIntegrationPlugin CONDITION QT_FEATURE_opengl
Qt::OpenGLPrivate
)
qt_extend_target(QWindowsIntegrationPlugin CONDITION QT_FEATURE_accessibility
SOURCES
uiautomation/qwindowsuiaaccessibility.cpp uiautomation/qwindowsuiaaccessibility.h
uiautomation/qwindowsuiabaseprovider.cpp uiautomation/qwindowsuiabaseprovider.h
uiautomation/qwindowsuiaexpandcollapseprovider.cpp uiautomation/qwindowsuiaexpandcollapseprovider.h
uiautomation/qwindowsuiagriditemprovider.cpp uiautomation/qwindowsuiagriditemprovider.h
uiautomation/qwindowsuiagridprovider.cpp uiautomation/qwindowsuiagridprovider.h
uiautomation/qwindowsuiainvokeprovider.cpp uiautomation/qwindowsuiainvokeprovider.h
uiautomation/qwindowsuiamainprovider.cpp uiautomation/qwindowsuiamainprovider.h
uiautomation/qwindowsuiaprovidercache.cpp uiautomation/qwindowsuiaprovidercache.h
uiautomation/qwindowsuiarangevalueprovider.cpp uiautomation/qwindowsuiarangevalueprovider.h
uiautomation/qwindowsuiaselectionitemprovider.cpp uiautomation/qwindowsuiaselectionitemprovider.h
uiautomation/qwindowsuiaselectionprovider.cpp uiautomation/qwindowsuiaselectionprovider.h
uiautomation/qwindowsuiatableitemprovider.cpp uiautomation/qwindowsuiatableitemprovider.h
uiautomation/qwindowsuiatableprovider.cpp uiautomation/qwindowsuiatableprovider.h
uiautomation/qwindowsuiatextprovider.cpp uiautomation/qwindowsuiatextprovider.h
uiautomation/qwindowsuiatextrangeprovider.cpp uiautomation/qwindowsuiatextrangeprovider.h
uiautomation/qwindowsuiatoggleprovider.cpp uiautomation/qwindowsuiatoggleprovider.h
uiautomation/qwindowsuiautils.cpp uiautomation/qwindowsuiautils.h
uiautomation/qwindowsuiavalueprovider.cpp uiautomation/qwindowsuiavalueprovider.h
uiautomation/qwindowsuiawindowprovider.cpp uiautomation/qwindowsuiawindowprovider.h
)
qt_extend_target(QWindowsIntegrationPlugin CONDITION QT_FEATURE_directwrite3
DEFINES
QT_USE_DIRECTWRITE2
QT_USE_DIRECTWRITE3
)
#### Keys ignored in scope 5:.:.:windows.pro:NOT TARGET___equals____ss_QT_DEFAULT_QPA_PLUGIN:
#### Keys ignored in scope 4:.:.:windows.pro:NOT TARGET___equals____ss_QT_DEFAULT_QPA_PLUGIN:
# PLUGIN_EXTENDS = "-"
qt_extend_target(QWindowsIntegrationPlugin CONDITION QT_FEATURE_opengl AND NOT QT_FEATURE_dynamicgl
@ -201,6 +177,29 @@ if(QT_FEATURE_imageformat_png)
)
endif()
qt_extend_target(QWindowsIntegrationPlugin CONDITION QT_FEATURE_accessibility
SOURCES
uiautomation/qwindowsuiaaccessibility.cpp uiautomation/qwindowsuiaaccessibility.h
uiautomation/qwindowsuiabaseprovider.cpp uiautomation/qwindowsuiabaseprovider.h
uiautomation/qwindowsuiaexpandcollapseprovider.cpp uiautomation/qwindowsuiaexpandcollapseprovider.h
uiautomation/qwindowsuiagriditemprovider.cpp uiautomation/qwindowsuiagriditemprovider.h
uiautomation/qwindowsuiagridprovider.cpp uiautomation/qwindowsuiagridprovider.h
uiautomation/qwindowsuiainvokeprovider.cpp uiautomation/qwindowsuiainvokeprovider.h
uiautomation/qwindowsuiamainprovider.cpp uiautomation/qwindowsuiamainprovider.h
uiautomation/qwindowsuiaprovidercache.cpp uiautomation/qwindowsuiaprovidercache.h
uiautomation/qwindowsuiarangevalueprovider.cpp uiautomation/qwindowsuiarangevalueprovider.h
uiautomation/qwindowsuiaselectionitemprovider.cpp uiautomation/qwindowsuiaselectionitemprovider.h
uiautomation/qwindowsuiaselectionprovider.cpp uiautomation/qwindowsuiaselectionprovider.h
uiautomation/qwindowsuiatableitemprovider.cpp uiautomation/qwindowsuiatableitemprovider.h
uiautomation/qwindowsuiatableprovider.cpp uiautomation/qwindowsuiatableprovider.h
uiautomation/qwindowsuiatextprovider.cpp uiautomation/qwindowsuiatextprovider.h
uiautomation/qwindowsuiatextrangeprovider.cpp uiautomation/qwindowsuiatextrangeprovider.h
uiautomation/qwindowsuiatoggleprovider.cpp uiautomation/qwindowsuiatoggleprovider.h
uiautomation/qwindowsuiautils.cpp uiautomation/qwindowsuiautils.h
uiautomation/qwindowsuiavalueprovider.cpp uiautomation/qwindowsuiavalueprovider.h
uiautomation/qwindowsuiawindowprovider.cpp uiautomation/qwindowsuiawindowprovider.h
)
qt_extend_target(QWindowsIntegrationPlugin CONDITION MINGW AND QT_FEATURE_accessibility
PUBLIC_LIBRARIES
uuid

View File

@ -54,7 +54,7 @@
#include <QtCore/qvariant.h>
#include <QtCore/qurl.h>
#include <QtEventDispatcherSupport/private/qwindowsguieventdispatcher_p.h>
#include <QtGui/private/qwindowsguieventdispatcher_p.h>
QT_BEGIN_NAMESPACE

View File

@ -84,7 +84,7 @@
#include <QtCore/private/qsystemlibrary_p.h>
#include <QtCore/private/qwinregistry_p.h>
#include <QtEventDispatcherSupport/private/qwindowsguieventdispatcher_p.h>
#include <QtGui/private/qwindowsguieventdispatcher_p.h>
#include <stdlib.h>
#include <stdio.h>

View File

@ -77,7 +77,7 @@
#include <QtGui/qpa/qplatforminputcontextfactory_p.h>
#include <QtGui/qpa/qplatformcursor.h>
#include <QtEventDispatcherSupport/private/qwindowsguieventdispatcher_p.h>
#include <QtGui/private/qwindowsguieventdispatcher_p.h>
#include <QtCore/qdebug.h>
#include <QtCore/qvariant.h>

View File

@ -49,7 +49,7 @@
#include <private/qguiapplication_p.h>
#include <private/qhighdpiscaling_p.h>
#include <QtGui/qevent.h>
#include <QtEventDispatcherSupport/private/qwindowsguieventdispatcher_p.h>
#include <QtGui/private/qwindowsguieventdispatcher_p.h>
#include <QtCore/private/qdebug_p.h>
#if defined(WM_APPCOMMAND)

View File

@ -2,7 +2,6 @@ TARGET = qwindows
QT += \
core-private gui-private \
eventdispatcher_support-private \
fontdatabase_support-private
qtConfig(opengl): QT += opengl-private