Commit 62aad4fc authored by Jonathan Esk-Riddell's avatar Jonathan Esk-Riddell 🏄
Browse files

Mark setProgramIconName() as deprecated, it did not do anything

Mark setProgramIconName() as deprecated, it did not do anything since
kcoreaddons no longer uses QtGui so it can not set the icon.

BUG: 337938
REVIEW: 119977
parent 9eb234a3
......@@ -910,7 +910,6 @@ void KAboutData::setApplicationData(const KAboutData &aboutData)
app->setApplicationName(aboutData.componentName());
app->setOrganizationDomain(aboutData.organizationDomain());
app->setProperty("applicationDisplayName", aboutData.displayName());
app->setProperty("applicationIconName", s_registry->m_appData->programIconName());
}
}
......
......@@ -556,15 +556,19 @@ public:
KAboutData &setDisplayName(const QString &displayName);
/**
* Defines the program icon.
* Obsolete method
*
* Use this if you need to have an application icon
* whose name is different than the application name.
* This method used to set the icon name but this is no longer
* possible in KDE Frameworks 5 because KCoreAddons does not
* depend on QtGui.
*
* Use QApplication:: setWindowIcon( QIcon::fromTheme() ) instead.
*
* @param iconName name of the icon. Example: "accessories-text-editor"
* @see programIconName()
*/
KAboutData &setProgramIconName(const QString &iconName);
// KF6 remove this
KCOREADDONS_DEPRECATED KAboutData &setProgramIconName(const QString &iconName);
/**
* Defines the program logo.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment