summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-07-24 15:10:45 (GMT)
committerMartin T. H. Sandsmark <martin.sandsmark@kde.org>2016-07-24 15:10:45 (GMT)
commitb9b2c3bfae69e83e7042c52ab8c89f8c4ea3985e (patch)
tree3bc4773a6e41eb0d533e0fe5fbcbd42fb303152a
parent2896b9c9a9ceb7a0b5ae5bc29f0cd248eb1372f7 (diff)
Remove usage of KGlobal from Part autotest
-rw-r--r--autotests/parttest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/autotests/parttest.cpp b/autotests/parttest.cpp
index 659cd75..eb0c08b 100644
--- a/autotests/parttest.cpp
+++ b/autotests/parttest.cpp
@@ -15,8 +15,8 @@
#include "../ui/pageview.h"
#include <KConfigDialog>
-#include <KGlobal>
#include <KAboutData>
+#include <KLocalizedString>
#include <QClipboard>
#include <QTreeView>
@@ -250,7 +250,7 @@ int main(int argc, char *argv[])
qRegisterMetaType<QUrl>(); /*as done by kapplication*/
qRegisterMetaType<QList<QUrl>>();
Okular::PartTest test;
- KGlobal::ref(); /* don't quit qeventloop after closing a mainwindow */
+ app.setQuitOnLastWindowClosed(false);
return QTest::qExec( &test, argc, argv );
}