From 8b2b11196b5e2c66413516644715590655e682b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 31 Jul 2017 17:48:59 +0200 Subject: [PATCH] [kcmkwin/desktop] Use KAboutData::programLogo instead of programIconName ProgramIconName is deprecated and what we want to achieve is actually provided by programLogo. --- kcmkwin/kwindesktop/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kcmkwin/kwindesktop/main.cpp b/kcmkwin/kwindesktop/main.cpp index 87c8606d78..4074388316 100644 --- a/kcmkwin/kwindesktop/main.cpp +++ b/kcmkwin/kwindesktop/main.cpp @@ -580,7 +580,7 @@ void KWinDesktopConfig::slotAboutEffectClicked() const QString icon = pluginInfo.icon(); KAboutData aboutData(name, name, version, comment, KAboutLicense::byKeyword(license).key(), QString(), QString(), website.toLatin1()); - aboutData.setProgramIconName(icon); + aboutData.setProgramLogo(icon); const QStringList authors = author.split(','); const QStringList emails = email.split(','); int i = 0; @@ -600,7 +600,7 @@ void KWinDesktopConfig::slotAboutEffectClicked() QStringLiteral(KWIN_VERSION_STRING), data.comment, KAboutLicense::GPL_V2); - aboutData.setProgramIconName(QStringLiteral("preferences-system-windows")); + aboutData.setProgramLogo(QIcon::fromTheme(QStringLiteral("preferences-system-windows"))); aboutData.addAuthor(i18n("KWin development team")); showDialog(aboutData); }