Skip to content

Commit

Permalink
Move QRasterBackingStore to QtGui
Browse files Browse the repository at this point in the history
Task-number: QTBUG-83255
Change-Id: I339173de6e109c5a9b9572972ba894c15053c034
Reviewed-by: Tor Arne Vestbø <[email protected]>
  • Loading branch information
torarnv committed May 21, 2020
1 parent 2f05aa8 commit f76161d
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 53 deletions.
5 changes: 5 additions & 0 deletions src/gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,11 @@ qt_extend_target(Gui CONDITION APPLE
${FWCoreGraphics}
)

qt_extend_target(Gui CONDITION APPLE
SOURCES
painting/qrasterbackingstore.cpp painting/qrasterbackingstore_p.h
)

qt_extend_target(Gui CONDITION QT_FEATURE_animation
SOURCES
animation/qguivariantanimation.cpp
Expand Down
8 changes: 6 additions & 2 deletions src/gui/painting/painting.pri
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,12 @@ RESOURCES += \
painting/qpdf.qrc \

darwin {
HEADERS += painting/qcoregraphics_p.h
SOURCES += painting/qcoregraphics.mm
HEADERS += \
painting/qcoregraphics_p.h \
painting/qrasterbackingstore_p.h
SOURCES += \
painting/qcoregraphics.mm \
painting/qrasterbackingstore.cpp
}

qtConfig(cssparser) {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

QT_BEGIN_NAMESPACE

class QRasterBackingStore : public QPlatformBackingStore
class Q_GUI_EXPORT QRasterBackingStore : public QPlatformBackingStore
{
public:
QRasterBackingStore(QWindow *window);
Expand Down
3 changes: 0 additions & 3 deletions src/platformsupport/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ endif()
if(QT_FEATURE_accessibility AND WIN32 AND NOT WINRT)
add_subdirectory(windowsuiautomation)
endif()
if(APPLE)
add_subdirectory(graphics)
endif()
if(QT_FEATURE_vulkan)
add_subdirectory(vkconvenience)
endif()
20 changes: 0 additions & 20 deletions src/platformsupport/graphics/CMakeLists.txt

This file was deleted.

12 changes: 0 additions & 12 deletions src/platformsupport/graphics/graphics.pro

This file was deleted.

5 changes: 0 additions & 5 deletions src/platformsupport/platformsupport.pro
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,6 @@ qtConfig(accessibility) {
win32:!winrt: SUBDIRS += windowsuiautomation
}

darwin {
SUBDIRS += \
graphics
}

qtConfig(vulkan): \
SUBDIRS += vkconvenience

Expand Down
1 change: 0 additions & 1 deletion src/plugins/platforms/cocoa/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ qt_internal_add_plugin(QCocoaIntegrationPlugin
Qt::Core
Qt::CorePrivate
Qt::FontDatabaseSupportPrivate
Qt::GraphicsSupportPrivate
Qt::Gui
Qt::GuiPrivate
Qt::ThemeSupportPrivate
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/platforms/cocoa/cocoa.pro
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ DEFINES += QT_NO_FOREACH
QT += \
core-private gui-private \
theme_support-private \
fontdatabase_support-private graphics_support-private
fontdatabase_support-private

qtConfig(vulkan): QT += vulkan_support-private

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/platforms/cocoa/qcocoabackingstore.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
#ifndef QBACKINGSTORE_COCOA_H
#define QBACKINGSTORE_COCOA_H

#include <QtGraphicsSupport/private/qrasterbackingstore_p.h>
#include <QtGui/private/qrasterbackingstore_p.h>

#include <private/qcore_mac_p.h>

Expand Down
1 change: 0 additions & 1 deletion src/plugins/platforms/ios/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ add_qt_plugin(QIOSIntegrationPlugin
Qt::Core
Qt::CorePrivate
Qt::FontDatabaseSupportPrivate
Qt::GraphicsSupportPrivate
Qt::Gui
Qt::GuiPrivate
)
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/platforms/ios/kernel.pro
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ qtConfig(shared): CONFIG += static

QT += \
core-private gui-private \
fontdatabase_support-private graphics_support-private
fontdatabase_support-private

qtHaveModule(platformcompositor_support-private): QT += platformcompositor_support-private

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/platforms/ios/qiosbackingstore.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

#include <qpa/qplatformbackingstore.h>

#include <QtGraphicsSupport/private/qrasterbackingstore_p.h>
#include <QtGui/private/qrasterbackingstore_p.h>

QT_BEGIN_NAMESPACE

Expand Down
1 change: 0 additions & 1 deletion sync.profile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"QtPlatformCompositorSupport" => "$basedir/src/platformsupport/platformcompositor",
"QtServiceSupport" => "$basedir/src/platformsupport/services",
"QtThemeSupport" => "$basedir/src/platformsupport/themes",
"QtGraphicsSupport" => "$basedir/src/platformsupport/graphics",
"QtEglSupport" => "$basedir/src/platformsupport/eglconvenience",
"QtFbSupport" => "$basedir/src/platformsupport/fbconvenience",
"QtGlxSupport" => "$basedir/src/platformsupport/glxconvenience",
Expand Down
3 changes: 0 additions & 3 deletions util/cmake/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,6 @@ def is_qt(self) -> bool:
"global", "Qt6", "Qt::Core", extra=["COMPONENTS", "Core"]
), # manually added special case
LibraryMapping("glx_support", "Qt6", "Qt::GlxSupport", extra=["COMPONENTS", "GlxSupport"]),
LibraryMapping(
"graphics_support", "Qt6", "Qt::GraphicsSupport", extra=["COMPONENTS", "GraphicsSupport"]
),
LibraryMapping(
"gsttools", "Qt6", "Qt::MultimediaGstTools", extra=["COMPONENTS", "MultimediaGstTools"]
),
Expand Down

0 comments on commit f76161d

Please sign in to comment.