summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandr Akulich <akulichalexander@gmail.com>2016-09-24 12:28:31 (GMT)
committerAlexandr Akulich <akulichalexander@gmail.com>2016-09-26 07:55:22 (GMT)
commitbe85071f0bb735e1b6ab90dcc0049db40cdc3fe8 (patch)
tree27c754e70785fd14799083fb71910a1c42720533
parent03508d05afe02c17ed7066d78d6f42283c2e14e5 (diff)
Ported away from deprecated setProgramIconName()
REVIEW: 129017
-rw-r--r--main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 2243100..f0468da 100644
--- a/main.cpp
+++ b/main.cpp
@@ -23,6 +23,7 @@
#include <QApplication>
#include <QDebug>
#include <QCommandLineParser>
+#include <QIcon>
#include <TelepathyQt/AccountFactory>
#include <TelepathyQt/AccountManager>
@@ -53,7 +54,6 @@ int main(int argc, char *argv[])
aboutData.addAuthor(i18n("David Edmundson"), i18n("Developer"), "kde@davidedmundson.co.uk");
aboutData.addAuthor(i18n("Daniele E. Domenichelli"), i18n("Developer"), "daniele.domenichelli@gmail.com");
aboutData.setProductName("telepathy/auth-handler");
- aboutData.setProgramIconName(QLatin1String("telepathy-kde"));
KAboutData::setApplicationData(aboutData);
@@ -75,6 +75,7 @@ int main(int argc, char *argv[])
setenv("KDE_SESSION_VERSION", "5", 0);
KTp::TelepathyHandlerApplication app(argc, argv);
+ QApplication::setWindowIcon(QIcon::fromTheme(QLatin1String("telepathy-kde")));
// FIXME: Move this to tp-qt4 itself
registerTypes();