diff --git a/CMakeLists.txt b/CMakeLists.txt index 1583c805..545713e5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,6 +25,8 @@ include(KDEGitCommitHooks) include(KDEClangFormat) include(FeatureSummary) +add_definitions(-DQT_NO_URL_CAST_FROM_STRING) + find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED Core Qml diff --git a/containments/panel/phonepanel.cpp b/containments/panel/phonepanel.cpp index 84b7381a..a906807f 100644 --- a/containments/panel/phonepanel.cpp +++ b/containments/panel/phonepanel.cpp @@ -178,7 +178,7 @@ void PhonePanel::handleMetaDataReceived(const QVariantMap &metadata, int fd) KNotification *notif = new KNotification("captured"); notif->setComponentName(QStringLiteral("plasma_phone_components")); notif->setTitle(i18n("New Screenshot")); - notif->setUrls({filePath}); + notif->setUrls({QUrl::fromLocalFile(filePath)}); notif->setText(i18n("New screenshot saved to %1", filePath)); notif->sendEvent(); }