From fd765b4a232ae2bff11f7b82186159a05c92fa3a Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Thu, 26 Sep 2019 16:09:44 +0200 Subject: [PATCH] Port away from deprecated KIO::suggestName Summary: KFileUtils::suggestName() is a drop-in replacement, just moved to another library Test Plan: builds Reviewers: #plasma, apol Reviewed By: apol Subscribers: plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D23996 --- applets/icon/iconapplet.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/applets/icon/iconapplet.cpp b/applets/icon/iconapplet.cpp index 28648c9dc..e745b1712 100644 --- a/applets/icon/iconapplet.cpp +++ b/applets/icon/iconapplet.cpp @@ -38,6 +38,7 @@ #include #include #include +#include #include #include #include @@ -121,9 +122,9 @@ void IconApplet::populate() } QString backingDesktopFile = plasmaIconsFolderPath + QLatin1Char('/'); - // KIO::suggestName always appends a suffix, i.e. it expects that we already know the file already exists + // KFileUtils::suggestName always appends a suffix, i.e. it expects that we already know the file already exists if (QFileInfo::exists(backingDesktopFile + desiredDesktopFileName)) { - desiredDesktopFileName = KIO::suggestName(QUrl::fromLocalFile(plasmaIconsFolderPath), desiredDesktopFileName); + desiredDesktopFileName = KFileUtils::suggestName(QUrl::fromLocalFile(plasmaIconsFolderPath), desiredDesktopFileName); } backingDesktopFile.append(desiredDesktopFileName);