From e085ba9ed9ae7e8840bc475af3989347a87d3207 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Mon, 12 Oct 2020 00:18:31 +0100 Subject: [PATCH] Do not link to KAuth. But there is still a build time dependency on kauth-policy-gen. --- src/CMakeLists.txt | 1 - src/util/externalcommand.cpp | 6 ------ src/util/externalcommand.h | 12 ------------ 3 files changed, 19 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ce33f9d..fda245d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -37,7 +37,6 @@ target_link_libraries( kpmcore PUBLIC KF5::I18n KF5::CoreAddons KF5::WidgetsAddons - KF5::AuthCore ) install(TARGETS kpmcore EXPORT KPMcoreTargets ${INSTALL_TARGETS_DEFAULT_ARGS}) diff --git a/src/util/externalcommand.cpp b/src/util/externalcommand.cpp index 75e9308..54996bb 100644 --- a/src/util/externalcommand.cpp +++ b/src/util/externalcommand.cpp @@ -37,8 +37,6 @@ #include #include #include - -#include #include #include @@ -53,10 +51,6 @@ struct ExternalCommandPrivate QProcess::ProcessChannelMode processChannelMode; }; -KAuth::ExecuteJob* ExternalCommand::m_job; -QWidget* ExternalCommand::parent; - - /** Creates a new ExternalCommand instance without Report. @param cmd the command to run @param args the arguments to pass to the command diff --git a/src/util/externalcommand.h b/src/util/externalcommand.h index 2b3d044..516c160 100644 --- a/src/util/externalcommand.h +++ b/src/util/externalcommand.h @@ -24,8 +24,6 @@ #include -namespace KAuth { class ExecuteJob; } - class KJob; class Report; class CopySource; @@ -89,13 +87,6 @@ public: /**< @return pointer to the Report or nullptr */ Report* report(); - /**< Sets a parent widget for the authentication dialog. - * @param p parent widget - */ - static void setParentWidget(QWidget *p) { - parent = p; - } - Q_SIGNALS: void progress(int); void reportSignal(const QString&); @@ -109,9 +100,6 @@ private: private: std::unique_ptr d; - // KAuth - static KAuth::ExecuteJob *m_job; - static QWidget *parent; }; #endif