From 5285b8b9c22bc9fced955308760c0619fe187191 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Fri, 28 Nov 2014 17:42:53 +0100 Subject: [PATCH] Drop Qt5::Gui requirement --- cli/CMakeLists.txt | 2 +- cli/kdeconnect-cli.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/CMakeLists.txt b/cli/CMakeLists.txt index 026b80d13..8a8f40b51 100644 --- a/cli/CMakeLists.txt +++ b/cli/CMakeLists.txt @@ -2,6 +2,6 @@ include_directories(${CMAKE_SOURCE_DIR}) add_executable(kdeconnect-cli kdeconnect-cli.cpp) -target_link_libraries(kdeconnect-cli kdeconnectinterfaces Qt5::Gui KF5::CoreAddons KF5::I18n) +target_link_libraries(kdeconnect-cli kdeconnectinterfaces KF5::CoreAddons KF5::I18n) install(TARGETS kdeconnect-cli ${INSTALL_TARGETS_DEFAULT_ARGS}) diff --git a/cli/kdeconnect-cli.cpp b/cli/kdeconnect-cli.cpp index 5de27f7f0..9e796cbb5 100644 --- a/cli/kdeconnect-cli.cpp +++ b/cli/kdeconnect-cli.cpp @@ -30,7 +30,7 @@ int main(int argc, char** argv) { - QGuiApplication app(argc, argv); + QCoreApplication app(argc, argv); KAboutData about("kdeconnect-cli", i18n("kdeconnect-cli"), "1.0", i18n("KDE Connect CLI tool"), KAboutLicense::GPL, i18n("(C) 2013 Aleix Pol Gonzalez")); KAboutData::setApplicationData(about);