Move QMacInternalPasteboardMime to QtGui
Task-number: QTBUG-83255 Change-Id: I00fda24479ad2c04781c5fefaa15fac1118033a8 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
9bad3508fc
commit
42024666a3
@ -760,6 +760,14 @@ qt_extend_target(Gui CONDITION WASM
|
||||
platform/wasm/qwasmlocalfileaccess.cpp platform/wasm/qwasmlocalfileaccess_p.h
|
||||
)
|
||||
|
||||
qt_extend_target(Gui CONDITION IOS OR MACOS
|
||||
SOURCES
|
||||
platform/darwin/qmacmime.mm
|
||||
platform/darwin/qmacmime_p.h
|
||||
PUBLIC_LIBRARIES
|
||||
${FWImageIO}
|
||||
)
|
||||
|
||||
qt_extend_target(Gui CONDITION IOS OR MACOS
|
||||
SOURCES
|
||||
rhi/qrhimetal.mm rhi/qrhimetal_p.h
|
||||
|
4
src/gui/platform/darwin/darwin.pri
Normal file
4
src/gui/platform/darwin/darwin.pri
Normal file
@ -0,0 +1,4 @@
|
||||
HEADERS += $$PWD/qmacmime_p.h
|
||||
SOURCES += $$PWD/qmacmime.mm
|
||||
LIBS += -framework ImageIO
|
||||
macos: LIBS_PRIVATE += -framework AppKit
|
@ -40,7 +40,10 @@
|
||||
#include <ImageIO/ImageIO.h>
|
||||
|
||||
#include <QtCore/qsystemdetection.h>
|
||||
#include <QtCore/qurl.h>
|
||||
#include <QtGui/qimage.h>
|
||||
#include <QtCore/qmimedata.h>
|
||||
#include <QtCore/qstringconverter.h>
|
||||
|
||||
#if defined(Q_OS_MACOS)
|
||||
#import <AppKit/AppKit.h>
|
@ -51,14 +51,15 @@
|
||||
// We mean it.
|
||||
//
|
||||
|
||||
#include <QtCore>
|
||||
|
||||
#include <QtGui/private/qtguiglobal_p.h>
|
||||
|
||||
#include <CoreFoundation/CoreFoundation.h>
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
|
||||
// Duplicate of QMacPasteboardMime in QtMacExtras. Keep in sync!
|
||||
class QMacInternalPasteboardMime {
|
||||
class Q_GUI_EXPORT QMacInternalPasteboardMime {
|
||||
char type;
|
||||
public:
|
||||
enum QMacPasteboardMimeType { MIME_DND=0x01,
|
||||
@ -87,10 +88,10 @@ public:
|
||||
virtual int count(QMimeData *mimeData);
|
||||
};
|
||||
|
||||
void qt_mac_addToGlobalMimeList(QMacInternalPasteboardMime *macMime);
|
||||
void qt_mac_removeFromGlobalMimeList(QMacInternalPasteboardMime *macMime);
|
||||
void qt_mac_registerDraggedTypes(const QStringList &types);
|
||||
const QStringList& qt_mac_enabledDraggedTypes();
|
||||
Q_GUI_EXPORT void qt_mac_addToGlobalMimeList(QMacInternalPasteboardMime *macMime);
|
||||
Q_GUI_EXPORT void qt_mac_removeFromGlobalMimeList(QMacInternalPasteboardMime *macMime);
|
||||
Q_GUI_EXPORT void qt_mac_registerDraggedTypes(const QStringList &types);
|
||||
Q_GUI_EXPORT const QStringList& qt_mac_enabledDraggedTypes();
|
||||
|
||||
QT_END_NAMESPACE
|
||||
|
@ -1 +1,2 @@
|
||||
wasm:include(wasm/wasm.pri)
|
||||
darwin:include(darwin/darwin.pri)
|
||||
|
@ -41,7 +41,6 @@ if(QT_FEATURE_accessibility AND WIN32 AND NOT WINRT)
|
||||
add_subdirectory(windowsuiautomation)
|
||||
endif()
|
||||
if(APPLE)
|
||||
add_subdirectory(clipboard)
|
||||
add_subdirectory(graphics)
|
||||
endif()
|
||||
if(QT_FEATURE_vulkan)
|
||||
|
@ -1,29 +0,0 @@
|
||||
# Generated from clipboard.pro.
|
||||
|
||||
#####################################################################
|
||||
## ClipboardSupport Module:
|
||||
#####################################################################
|
||||
|
||||
qt_add_module(ClipboardSupport
|
||||
STATIC
|
||||
INTERNAL_MODULE
|
||||
SOURCES
|
||||
qmacmime.mm qmacmime_p.h
|
||||
DEFINES
|
||||
QT_NO_CAST_FROM_ASCII
|
||||
PUBLIC_LIBRARIES
|
||||
${FWImageIO}
|
||||
Qt::CorePrivate
|
||||
Qt::Gui
|
||||
)
|
||||
|
||||
#### Keys ignored in scope 1:.:.:clipboard.pro:<TRUE>:
|
||||
# MODULE = "clipboard_support"
|
||||
|
||||
## Scopes:
|
||||
#####################################################################
|
||||
|
||||
qt_extend_target(ClipboardSupport CONDITION MACOS
|
||||
LIBRARIES
|
||||
${FWAppKit}
|
||||
)
|
@ -1,15 +0,0 @@
|
||||
TARGET = QtClipboardSupport
|
||||
MODULE = clipboard_support
|
||||
|
||||
QT = core-private gui
|
||||
CONFIG += static internal_module
|
||||
|
||||
DEFINES += QT_NO_CAST_FROM_ASCII
|
||||
|
||||
HEADERS += qmacmime_p.h
|
||||
SOURCES += qmacmime.mm
|
||||
|
||||
LIBS += -framework ImageIO
|
||||
macos: LIBS_PRIVATE += -framework AppKit
|
||||
|
||||
load(qt_module)
|
@ -39,7 +39,6 @@ qtConfig(accessibility) {
|
||||
|
||||
darwin {
|
||||
SUBDIRS += \
|
||||
clipboard \
|
||||
graphics
|
||||
}
|
||||
|
||||
|
@ -56,7 +56,6 @@ qt_internal_add_plugin(QCocoaIntegrationPlugin
|
||||
${FWMetal}
|
||||
${FWQuartzCore}
|
||||
Cups::Cups
|
||||
Qt::ClipboardSupportPrivate
|
||||
Qt::Core
|
||||
Qt::CorePrivate
|
||||
Qt::FontDatabaseSupportPrivate
|
||||
|
@ -96,7 +96,7 @@ DEFINES += QT_NO_FOREACH
|
||||
|
||||
QT += \
|
||||
core-private gui-private \
|
||||
clipboard_support-private theme_support-private \
|
||||
theme_support-private \
|
||||
fontdatabase_support-private graphics_support-private
|
||||
|
||||
qtConfig(vulkan): QT += vulkan_support-private
|
||||
|
@ -38,7 +38,7 @@
|
||||
****************************************************************************/
|
||||
|
||||
#include "qcocoamimetypes.h"
|
||||
#include <QtClipboardSupport/private/qmacmime_p.h>
|
||||
#include <QtGui/private/qmacmime_p.h>
|
||||
#include "qcocoahelpers.h"
|
||||
#include <QtGui/private/qcoregraphics_p.h>
|
||||
|
||||
|
@ -41,7 +41,7 @@
|
||||
#define QMACCLIPBOARD_H
|
||||
|
||||
#include <QtGui>
|
||||
#include <QtClipboardSupport/private/qmacmime_p.h>
|
||||
#include <QtGui/private/qmacmime_p.h>
|
||||
|
||||
#import <AppKit/AppKit.h>
|
||||
|
||||
|
@ -31,7 +31,6 @@ add_qt_plugin(QIOSIntegrationPlugin
|
||||
${FWFoundation}
|
||||
${FWQuartzCore}
|
||||
${FWUIKit}
|
||||
Qt::ClipboardSupportPrivate
|
||||
Qt::Core
|
||||
Qt::CorePrivate
|
||||
Qt::FontDatabaseSupportPrivate
|
||||
|
@ -7,7 +7,7 @@ qtConfig(shared): CONFIG += static
|
||||
|
||||
QT += \
|
||||
core-private gui-private \
|
||||
clipboard_support-private fontdatabase_support-private graphics_support-private
|
||||
fontdatabase_support-private graphics_support-private
|
||||
|
||||
qtHaveModule(platformcompositor_support-private): QT += platformcompositor_support-private
|
||||
|
||||
|
@ -41,7 +41,8 @@
|
||||
|
||||
#ifndef QT_NO_CLIPBOARD
|
||||
|
||||
#include <QtClipboardSupport/private/qmacmime_p.h>
|
||||
#include <QtCore/qurl.h>
|
||||
#include <QtGui/private/qmacmime_p.h>
|
||||
#include <QtCore/QMimeData>
|
||||
#include <QtGui/QGuiApplication>
|
||||
|
||||
|
@ -60,7 +60,7 @@
|
||||
#include <qpa/qplatformoffscreensurface.h>
|
||||
|
||||
#include <QtFontDatabaseSupport/private/qcoretextfontdatabase_p.h>
|
||||
#include <QtClipboardSupport/private/qmacmime_p.h>
|
||||
#include <QtGui/private/qmacmime_p.h>
|
||||
#include <QDir>
|
||||
#include <QOperatingSystemVersion>
|
||||
|
||||
|
@ -14,7 +14,6 @@
|
||||
"QtAccessibilitySupport" => "$basedir/src/platformsupport/accessibility",
|
||||
"QtWindowsUIAutomationSupport" => "$basedir/src/platformsupport/windowsuiautomation",
|
||||
"QtLinuxAccessibilitySupport" => "$basedir/src/platformsupport/linuxaccessibility",
|
||||
"QtClipboardSupport" => "$basedir/src/platformsupport/clipboard",
|
||||
"QtDeviceDiscoverySupport" => "$basedir/src/platformsupport/devicediscovery",
|
||||
"QtEventDispatcherSupport" => "$basedir/src/platformsupport/eventdispatchers",
|
||||
"QtFontDatabaseSupport" => "$basedir/src/platformsupport/fontdatabases",
|
||||
|
@ -96,9 +96,6 @@ _qt_library_map = [
|
||||
LibraryMapping("bootstrap", "Qt6", "Qt::Bootstrap", extra=["COMPONENTS", "Bootstrap"]),
|
||||
# bootstrap-dbus: Not needed in Qt6!
|
||||
LibraryMapping("client", "Qt6", "Qt::WaylandClient", extra=["COMPONENTS", "WaylandClient"]),
|
||||
LibraryMapping(
|
||||
"clipboard_support", "Qt6", "Qt::ClipboardSupport", extra=["COMPONENTS", "ClipboardSupport"]
|
||||
),
|
||||
LibraryMapping("coap", "Qt6", "Qt::Coap", extra=["COMPONENTS", "Coap"]),
|
||||
LibraryMapping("common-lib", "Qt6", "Qt::AppManCommon", extra=["COMPONENTS", "AppManCommon"]),
|
||||
LibraryMapping(
|
||||
|
Loading…
Reference in New Issue
Block a user