Commit 8e755d86 authored by Méven Car's avatar Méven Car
Browse files

AgentServer: remove unnecessary QWidgets import

parent 6af4fff4
Pipeline #60240 failed with stage
in 15 minutes and 58 seconds
...@@ -25,7 +25,6 @@ target_link_libraries(akonadi_agent_server ...@@ -25,7 +25,6 @@ target_link_libraries(akonadi_agent_server
KF5AkonadiPrivate KF5AkonadiPrivate
Qt::Core Qt::Core
Qt::DBus Qt::DBus
Qt::Widgets
) )
# Agent plugin launcher # Agent plugin launcher
......
...@@ -7,8 +7,6 @@ ...@@ -7,8 +7,6 @@
#include "agentthread.h" #include "agentthread.h"
#include "akonadiagentserver_debug.h" #include "akonadiagentserver_debug.h"
#include <QWidget> // Needed for WId
#include <QMetaObject> #include <QMetaObject>
#include <shared/akdebug.h> #include <shared/akdebug.h>
...@@ -38,5 +36,5 @@ void AgentThread::run() ...@@ -38,5 +36,5 @@ void AgentThread::run()
void AgentThread::configure(qlonglong windowId) void AgentThread::configure(qlonglong windowId)
{ {
QMetaObject::invokeMethod(m_instance, "configure", Qt::DirectConnection, Q_ARG(WId, (WId)windowId)); QMetaObject::invokeMethod(m_instance, "configure", Qt::DirectConnection, Q_ARG(quintptr, (quintptr)windowId));
} }
...@@ -11,16 +11,14 @@ ...@@ -11,16 +11,14 @@
#include <shared/akapplication.h> #include <shared/akapplication.h>
#include <QApplication>
#include <QDBusConnection> #include <QDBusConnection>
#include <QDBusConnectionInterface> #include <QDBusConnectionInterface>
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
AkApplication app(argc, argv, AKONADIAGENTSERVER_LOG()); AkCoreApplication app(argc, argv, AKONADIAGENTSERVER_LOG());
app.setDescription(QStringLiteral("Akonadi Agent Server\nDo not run manually, use 'akonadictl' instead to start/stop Akonadi.")); app.setDescription(QStringLiteral("Akonadi Agent Server\nDo not run manually, use 'akonadictl' instead to start/stop Akonadi."));
app.parseCommandLine(); app.parseCommandLine();
qApp->setQuitOnLastWindowClosed(false);
if (!QDBusConnection::sessionBus().interface()->isServiceRegistered(Akonadi::DBus::serviceName(Akonadi::DBus::ControlLock))) { if (!QDBusConnection::sessionBus().interface()->isServiceRegistered(Akonadi::DBus::serviceName(Akonadi::DBus::ControlLock))) {
qCCritical(AKONADIAGENTSERVER_LOG) << "Akonadi control process not found - aborting."; qCCritical(AKONADIAGENTSERVER_LOG) << "Akonadi control process not found - aborting.";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment