File tree Expand file tree Collapse file tree 4 files changed +5
-15
lines changed Expand file tree Collapse file tree 4 files changed +5
-15
lines changed Original file line number Diff line number Diff line change @@ -481,9 +481,6 @@ if(WITH_CORE)
481
481
find_package (${QT_VERSION_BASE} COMPONENTS 3DCore 3DRender 3DInput 3DLogic 3DExtras REQUIRED )
482
482
set (HAVE_3D TRUE ) # used in qgsconfig.h
483
483
endif ()
484
- if (APPLE )
485
- find_package (${QT_VERSION_BASE} COMPONENTS MacExtras REQUIRED )
486
- endif ()
487
484
488
485
# get the Qt plugins directory
489
486
get_target_property (QMAKE_EXECUTABLE ${QT_VERSION_BASE} ::qmake LOCATION )
@@ -498,7 +495,7 @@ if(WITH_CORE)
498
495
endif ()
499
496
if (WITH_QUICK )
500
497
find_package (${QT_VERSION_BASE} COMPONENTS Qml Quick REQUIRED )
501
- if (${CMAKE_SYSTEM_NAME} MATCHES "Android" )
498
+ if (${CMAKE_SYSTEM_NAME} MATCHES "Android" AND NOT BUILD_WITH_QT6 )
502
499
find_package (${QT_VERSION_BASE} COMPONENTS AndroidExtras )
503
500
endif ()
504
501
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ SET (QT_FWVER "5")
16
16
# build list of Qt frameworks to bundle
17
17
18
18
# core list, includes dependencies and used by extra plugins
19
- SET (QTLISTQG QtCore QtGui QtWidgets QtNetwork QtXml QtSvg QtConcurrent QtPrintSupport QtSerialPort QtPositioning QtTest QtSql QtMacExtras QtDBus )
20
- SET (PYQTLIST Qt QtCore QtGui QtWidgets QtNetwork QtXml QtSvg QtPrintSupport QtPositioning QtSerialPort QtTest QtSql QtMacExtras QtDBus )
19
+ SET (QTLISTQG QtCore QtGui QtWidgets QtNetwork QtXml QtSvg QtConcurrent QtPrintSupport QtSerialPort QtPositioning QtTest QtSql QtDBus )
20
+ SET (PYQTLIST Qt QtCore QtGui QtWidgets QtNetwork QtXml QtSvg QtPrintSupport QtPositioning QtSerialPort QtTest QtSql QtDBus )
21
21
22
22
# QtQuickWidgets appears to be implied direct dep, it needs Quick and Qml,
23
23
# whether or not WITH_QUICK specified
Original file line number Diff line number Diff line change @@ -144,12 +144,6 @@ if (UNIX AND NOT APPLE AND NOT ANDROID)
144
144
target_link_libraries (qgis_native ${QT_VERSION_BASE} ::DBus )
145
145
endif ()
146
146
147
- if (APPLE )
148
- find_package (${QT_VERSION_BASE} MacExtras )
149
-
150
- target_link_libraries (qgis_native ${QT_VERSION_BASE} ::MacExtras )
151
- endif ()
152
-
153
147
if (MSVC )
154
148
find_package (${QT_VERSION_BASE} WinExtras )
155
149
Original file line number Diff line number Diff line change 18
18
#include " qgsmacnative.h"
19
19
20
20
#include < Cocoa/Cocoa.h>
21
- #include < QtMacExtras/QtMac>
22
21
23
22
#include < QString>
24
23
#include < QPixmap>
@@ -60,7 +59,7 @@ - ( BOOL )userNotificationCenter:( NSUserNotificationCenter * )center shouldPres
60
59
61
60
void QgsMacNative::setIconPath ( const QString &iconPath )
62
61
{
63
- mQgsUserNotificationCenter ->_qgisIcon = QtMac::toNSImage ( QPixmap ( iconPath ) ) ;
62
+ mQgsUserNotificationCenter ->_qgisIcon = [[ NSImage alloc ] initWithCGImage: QPixmap ( iconPath ). toImage (). toCGImage ()] ;
64
63
}
65
64
66
65
const char *QgsMacNative::currentAppLocalizedName ()
@@ -105,7 +104,7 @@ - ( BOOL )userNotificationCenter:( NSUserNotificationCenter * )center shouldPres
105
104
}
106
105
else
107
106
{
108
- image = QtMac::toNSImage ( px ) ;
107
+ image = [[ NSImage alloc ] initWithCGImage: px. toImage (). toCGImage ()] ;
109
108
}
110
109
notification.contentImage = image;
111
110
You can’t perform that action at this time.
0 commit comments