Do not link to KAuth. But there is still a build time dependency on kauth-policy-gen.
This commit is contained in:
parent
6cff70567b
commit
e085ba9ed9
|
@ -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})
|
||||
|
|
|
@ -37,8 +37,6 @@
|
|||
#include <QTimer>
|
||||
#include <QThread>
|
||||
#include <QVariant>
|
||||
|
||||
#include <KAuth>
|
||||
#include <KJob>
|
||||
#include <KLocalizedString>
|
||||
|
||||
|
@ -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
|
||||
|
|
|
@ -24,8 +24,6 @@
|
|||
|
||||
#include <memory>
|
||||
|
||||
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<ExternalCommandPrivate> d;
|
||||
|
||||
// KAuth
|
||||
static KAuth::ExecuteJob *m_job;
|
||||
static QWidget *parent;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue