aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Krause <[email protected]>2015-09-04 15:37:59 +0200
committerVolker Krause <[email protected]>2015-09-04 15:37:59 +0200
commit0bf0b623006bd13b0b0af0553fdd707125116865 (patch)
tree10f80607d4aa246a7bc4ae3c445e2e754ab14908
parent3b58ff4050d289b6b88a6048eb62bad38e2217b0 (diff)
Port away from KComponentData/K4AboutData.
-rw-r--r--tests/CMakeLists.txt4
-rw-r--r--tests/testimapidle.cpp7
-rw-r--r--tests/testimapserver.cpp6
3 files changed, 4 insertions, 13 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 3ace46b..07dd3f2 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -3,7 +3,7 @@ kde_enable_exceptions()
find_package(Qt5Test CONFIG REQUIRED) #for qsignalspy.h
add_executable(testimapidle testimapidle.cpp)
-target_link_libraries(testimapidle KF5IMAP Qt5::Test KF5::KDELibs4Support Qt5::Network)
+target_link_libraries(testimapidle KF5IMAP Qt5::Test KF5::KIOCore Qt5::Network)
add_executable(testimapserver testimapserver.cpp)
-target_link_libraries(testimapserver KF5IMAP Qt5::Test KF5::KDELibs4Support Qt5::Network)
+target_link_libraries(testimapserver KF5IMAP Qt5::Test KF5::KIOCore Qt5::Network)
diff --git a/tests/testimapidle.cpp b/tests/testimapidle.cpp
index 8d40a24..b9a2d10 100644
--- a/tests/testimapidle.cpp
+++ b/tests/testimapidle.cpp
@@ -18,11 +18,7 @@
* Boston, MA 02110-1301, USA.
*/
-#include <kcomponentdata.h>
-#include <k4aboutdata.h>
-#include <klocalizedstring.h>
#include <qdebug.h>
-#include <ktcpsocket.h> // declares KSslErrorUiData
#include <QCoreApplication>
#include <qsignalspy.h>
@@ -49,8 +45,7 @@ public:
int main(int argc, char **argv)
{
- K4AboutData about("TestImapIdle", 0, ki18n("TestImapIdle"), "version");
- KComponentData cData(&about);
+ QCoreApplication::setApplicationName(QStringLiteral("TestImapIdle"));
if (argc < 4) {
qCritical() << "Not enough parameters, expecting: <server> <user> <password>";
diff --git a/tests/testimapserver.cpp b/tests/testimapserver.cpp
index 9d0cda5..d8e752d 100644
--- a/tests/testimapserver.cpp
+++ b/tests/testimapserver.cpp
@@ -19,10 +19,7 @@
* Boston, MA 02110-1301, USA.
*/
-#include <kcomponentdata.h>
-#include <k4aboutdata.h>
#include <qdebug.h>
-#include <klocalizedstring.h>
#include <qtcpsocket.h>
#include <QCoreApplication>
#include <qsignalspy.h>
@@ -379,8 +376,7 @@ void testDelete(Session *session)
int main(int argc, char **argv)
{
- K4AboutData about("TestImapServer", 0, ki18n("TestImapServer"), "version");
- KComponentData cData(&about);
+ QCoreApplication::setApplicationName(QStringLiteral("TestImapServer"));
if (argc < 4) {
qCritical() << "Not enough parameters, expecting: <server> <user> <password>";