summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederik Gladhorn <gladhorn@kde.org>2014-09-11 19:45:09 (GMT)
committerFrederik Gladhorn <gladhorn@kde.org>2014-09-16 21:22:30 (GMT)
commit50e3c1478a6fe064dd3a965bdcb31b45b1bfa153 (patch)
treeef9f3fdc74999a7f2cedfd1e67b054215c44e64f
parentd98b4d920037422fe052ffa2633349d41fdbe02e (diff)
Use qApp instead of kapp
-rw-r--r--shell/okular_main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/okular_main.cpp b/shell/okular_main.cpp
index e7b337a..4163ee2 100644
--- a/shell/okular_main.cpp
+++ b/shell/okular_main.cpp
@@ -15,7 +15,7 @@
#include "okular_main.h"
#include "shell.h"
-#include <kapplication.h>
+#include <QtWidgets/qapplication.h>
#include <klocale.h>
#include <QtDBus/qdbusinterface.h>
#include <QTextStream>
@@ -51,7 +51,7 @@ static bool attachExistingInstance(const QStringList &paths, const QString &seri
// Don't match the service without trailing "-" (unique instance)
const QString pattern = "org.kde.okular-";
- const QString myPid = QString::number( kapp->applicationPid() );
+ const QString myPid = QString::number( qApp->applicationPid() );
QScopedPointer<QDBusInterface> bestService;
const int desktop = KWindowSystem::currentDesktop();