Set program icon the new way

Set program icon the new way, via QApplication.

Patch by Arnold Dumas.

REVIEW: 120309
parent 935ef064
......@@ -70,6 +70,7 @@ int main(int argc, char *argv[])
app.setApplicationVersion(QStringLiteral(APP_VERSION));
app.setOrganizationDomain(QStringLiteral("kde.org"));
app.setOrganizationName(QStringLiteral("KDE"));
app.setWindowIcon(QIcon::fromTheme(QLatin1String(APP_NAME)));
KAboutData::setApplicationData(about);
......
......@@ -78,7 +78,6 @@ Part::Part(QWidget *parentWidget, QObject *parent, const QList<QVariant>&)
QString(),
QStringLiteral("http://utils.kde.org/projects/filelight"),
QStringLiteral("martin.sandsmark@kde.org"));
aboutData.setProgramIconName(QStringLiteral(APP_NAME));
setComponentData(aboutData);
setXMLFile(QStringLiteral( "filelightpartui.rc" ));
......
Markdown is supported
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