[kcmkwin/desktop] Use KAboutData::programLogo instead of programIconName
ProgramIconName is deprecated and what we want to achieve is actually provided by programLogo.
This commit is contained in:
parent
ca84a81e0d
commit
8b2b11196b
1 changed files with 2 additions and 2 deletions
|
@ -580,7 +580,7 @@ void KWinDesktopConfig::slotAboutEffectClicked()
|
||||||
const QString icon = pluginInfo.icon();
|
const QString icon = pluginInfo.icon();
|
||||||
|
|
||||||
KAboutData aboutData(name, name, version, comment, KAboutLicense::byKeyword(license).key(), QString(), QString(), website.toLatin1());
|
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 authors = author.split(',');
|
||||||
const QStringList emails = email.split(',');
|
const QStringList emails = email.split(',');
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
@ -600,7 +600,7 @@ void KWinDesktopConfig::slotAboutEffectClicked()
|
||||||
QStringLiteral(KWIN_VERSION_STRING),
|
QStringLiteral(KWIN_VERSION_STRING),
|
||||||
data.comment,
|
data.comment,
|
||||||
KAboutLicense::GPL_V2);
|
KAboutLicense::GPL_V2);
|
||||||
aboutData.setProgramIconName(QStringLiteral("preferences-system-windows"));
|
aboutData.setProgramLogo(QIcon::fromTheme(QStringLiteral("preferences-system-windows")));
|
||||||
aboutData.addAuthor(i18n("KWin development team"));
|
aboutData.addAuthor(i18n("KWin development team"));
|
||||||
showDialog(aboutData);
|
showDialog(aboutData);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue