diff --git a/plugins/findthisdevice/findthisdevice_config.cpp b/plugins/findthisdevice/findthisdevice_config.cpp index 713542671..7af7f9913 100644 --- a/plugins/findthisdevice/findthisdevice_config.cpp +++ b/plugins/findthisdevice/findthisdevice_config.cpp @@ -49,7 +49,7 @@ FindThisDeviceConfig::FindThisDeviceConfig(QWidget* parent, const QVariantList& connect(m_ui->playSoundButton, &QToolButton::clicked, this, &FindThisDeviceConfig::playSound); connect(m_ui->soundFileRequester, &KUrlRequester::textChanged, - this, QOverload<>::of(&FindThisDeviceConfig::changed)); + this, &FindThisDeviceConfig::markAsChanged); } FindThisDeviceConfig::~FindThisDeviceConfig() diff --git a/plugins/share/shareplugin.cpp b/plugins/share/shareplugin.cpp index dd67a7669..de13fc856 100644 --- a/plugins/share/shareplugin.cpp +++ b/plugins/share/shareplugin.cpp @@ -35,6 +35,7 @@ #include #include #include +#include #include "core/filetransferjob.h" #include "core/daemon.h" @@ -73,7 +74,7 @@ QUrl SharePlugin::getFileDestination(const QString filename) const QUrl destination(dir); destination.setPath(dir.path() + QStringLiteral("/") + filename, QUrl::DecodedMode); if (destination.isLocalFile() && QFile::exists(destination.toLocalFile())) { - destination.setPath(dir.path() + QStringLiteral("/") + KIO::suggestName(dir, filename), QUrl::DecodedMode); + destination.setPath(dir.path() + QStringLiteral("/") + KFileUtils::suggestName(dir, filename), QUrl::DecodedMode); } return destination; }