macOS: Remove MIME plumbing from QCocoaNativeInterface
The functions are available as private API though qt_mac_addToGlobalMimeList and qt_mac_removeFromGlobalMimeList for those that need it. Task-number: QTBUG-83252 Change-Id: Ibc17aedd9aaced236a082d3d8de4b28313406a02 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
This commit is contained in:
parent
2a5ac24917
commit
8929e90e86
@ -75,11 +75,6 @@ private:
|
||||
|
||||
Q_INVOKABLE void clearCurrentThreadCocoaEventDispatcherInterruptFlag();
|
||||
|
||||
// QMacPastebardMime support. The mac pasteboard void pointers are
|
||||
// QMacPastebardMime instances from the cocoa plugin or qtmacextras
|
||||
// These two classes are kept in sync and can be casted between.
|
||||
static void addToMimeList(void *macPasteboardMime);
|
||||
static void removeFromMimeList(void *macPasteboardMime);
|
||||
static void registerDraggedTypes(const QStringList &types);
|
||||
|
||||
// Set a QWindow as a "guest" (subwindow) of a non-QWindow
|
||||
|
@ -94,10 +94,6 @@ void *QCocoaNativeInterface::nativeResourceForWindow(const QByteArray &resourceS
|
||||
|
||||
QPlatformNativeInterface::NativeResourceForIntegrationFunction QCocoaNativeInterface::nativeResourceFunctionForIntegration(const QByteArray &resource)
|
||||
{
|
||||
if (resource.toLower() == "addtomimelist")
|
||||
return NativeResourceForIntegrationFunction(QCocoaNativeInterface::addToMimeList);
|
||||
if (resource.toLower() == "removefrommimelist")
|
||||
return NativeResourceForIntegrationFunction(QCocoaNativeInterface::removeFromMimeList);
|
||||
if (resource.toLower() == "registerdraggedtypes")
|
||||
return NativeResourceForIntegrationFunction(QCocoaNativeInterface::registerDraggedTypes);
|
||||
if (resource.toLower() == "registertouchwindow")
|
||||
@ -158,16 +154,6 @@ void QCocoaNativeInterface::onAppFocusWindowChanged(QWindow *window)
|
||||
QCocoaMenuBar::updateMenuBarImmediately();
|
||||
}
|
||||
|
||||
void QCocoaNativeInterface::addToMimeList(void *macPasteboardMime)
|
||||
{
|
||||
qt_mac_addToGlobalMimeList(reinterpret_cast<QMacInternalPasteboardMime *>(macPasteboardMime));
|
||||
}
|
||||
|
||||
void QCocoaNativeInterface::removeFromMimeList(void *macPasteboardMime)
|
||||
{
|
||||
qt_mac_removeFromGlobalMimeList(reinterpret_cast<QMacInternalPasteboardMime *>(macPasteboardMime));
|
||||
}
|
||||
|
||||
void QCocoaNativeInterface::registerDraggedTypes(const QStringList &types)
|
||||
{
|
||||
qt_mac_registerDraggedTypes(types);
|
||||
|
Loading…
Reference in New Issue
Block a user