Make macdeployqt work with Qt 5 too

This commit is contained in:
Jonas Kvinge
2021-04-10 03:28:38 +02:00
parent 5a58ac2845
commit 6fa331ad06
2 changed files with 22 additions and 1 deletions

View File

@@ -254,7 +254,11 @@ int main(int argc, char **argv)
if (plugins) {
if (plugin_dir.isEmpty()) {
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
deploymentInfo.pluginPath = QLibraryInfo::path(QLibraryInfo::PluginsPath);
#else
deploymentInfo.pluginPath = QLibraryInfo::location(QLibraryInfo::PluginsPath);
#endif
}
else {
deploymentInfo.pluginPath = plugin_dir;