aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin T. H. Sandsmark <[email protected]>2016-05-05 22:08:28 +0200
committerMartin T. H. Sandsmark <[email protected]>2016-05-05 22:08:28 +0200
commit8f13567afd6d2b4a98afa4b8624125315ae11d8e (patch)
tree83d3b8dba0d6129ce1ba814959573ce3aa8474c5
parent935ef064e444a59a3905fbf83c7d42c17d3f1e5f (diff)
Set program icon the new way
Set program icon the new way, via QApplication. Patch by Arnold Dumas. REVIEW: 120309
-rw-r--r--src/app/main.cpp1
-rw-r--r--src/part/part.cpp1
2 files changed, 1 insertions, 1 deletions
diff --git a/src/app/main.cpp b/src/app/main.cpp
index 478f97a..a5db9b9 100644
--- a/src/app/main.cpp
+++ b/src/app/main.cpp
@@ -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);
diff --git a/src/part/part.cpp b/src/part/part.cpp
index a6c425b..c7c06e1 100644
--- a/src/part/part.cpp
+++ b/src/part/part.cpp
@@ -78,7 +78,6 @@ Part::Part(QWidget *parentWidget, QObject *parent, const QList<QVariant>&)
QString(),
QStringLiteral("http://utils.kde.org/projects/filelight"),
QStringLiteral("[email protected]"));
- aboutData.setProgramIconName(QStringLiteral(APP_NAME));
setComponentData(aboutData);
setXMLFile(QStringLiteral( "filelightpartui.rc" ));