Commit 74614801 authored by Volker Krause's avatar Volker Krause
Browse files

Add various missing includes and link libraries

Those are no longer pulled in indirectly with KF deprecation level 5.94.
parent de45732b
......@@ -11,6 +11,8 @@
#include <KService>
#include <KServiceGroup>
#include <QPointer>
class AppsModel;
class MenuEntryEditor;
......
......@@ -7,6 +7,7 @@
#pragma once
#include <QObject>
#include <QPointer>
#include <QString>
#include <QUrl>
......
......@@ -16,6 +16,7 @@ target_link_libraries(statusnotifiertest
KF5::Service
KF5::Notifications
KF5::I18n
KF5::ConfigCore
Qt::DBus
)
......
......@@ -8,7 +8,9 @@
#include <QDebug>
#include <KConfigGroup>
#include <KIO/ApplicationLauncherJob>
#include <KPluginFactory>
#include <Plasma/PluginLoader>
AppLauncher::AppLauncher(QObject *parent, const QVariantList &args)
......
......@@ -17,6 +17,7 @@
#include <KGlobalAccel>
#include <KIO/CommandLauncherJob>
#include <KLocalizedString>
#include <KService>
#include <QDebug>
#include <QIcon>
......@@ -328,3 +329,4 @@ void ContextMenu::save(KConfigGroup &config)
K_PLUGIN_CLASS_WITH_JSON(ContextMenu, "plasma-containmentactions-contextmenu.json")
#include "menu.moc"
#include "moc_menu.cpp"
......@@ -7,6 +7,7 @@
#pragma once
#include <QButtonGroup>
#include <QHash>
#include <plasma/containmentactions.h>
class SessionManagement;
......
......@@ -9,6 +9,8 @@
#include <virtualdesktopinfo.h>
#include <KPluginFactory>
#include <QAction>
using namespace TaskManager;
......
......@@ -7,6 +7,7 @@
#pragma once
#include <QHash>
#include <plasma/containmentactions.h>
class QAction;
......
......@@ -11,10 +11,13 @@
#include "activityinfo.h"
#include "tasksmodel.h"
#include "virtualdesktopinfo.h"
#include <QVariantMap>
#include <KConfigGroup>
#include <KPluginFactory>
#include <QAction>
#include <QMenu>
#include <QVariantMap>
using namespace TaskManager;
......
......@@ -15,6 +15,7 @@
#include <KConfigGroup>
#include <KDesktopFile>
#include <KDirWatch>
#include <KService>
#include <Plasma/DataContainer>
#include <QDebug>
#include <kdesktopfileactions.h>
......
......@@ -11,6 +11,7 @@
#include <KDesktopFileActions>
#include <KLocalizedString>
#include <KService>
#include <QDebug>
#include <QStandardPaths>
......
......@@ -13,6 +13,7 @@
#include <KConfig>
#include <KConfigGroup>
#include <KNotifyConfigWidget>
#include <KService>
#include <KSharedConfig>
#include <QGuiApplication>
#include <klocalizedstring.h>
......
......@@ -19,6 +19,7 @@
#include <KAuthorized>
#include <KIdleTime>
#include <KService>
#include <klocalizedstring.h>
#include <QDebug>
......
......@@ -7,6 +7,8 @@
#include "autostart.h"
#include <KPluginFactory>
K_PLUGIN_CLASS_WITH_JSON(Autostart, "kcm_autostart.json")
Autostart::Autostart(QObject *parent, const KPluginMetaData &data, const QVariantList &)
......
......@@ -14,4 +14,5 @@ target_link_libraries(ktimezoned
KF5::Service # plugin factory
KF5::CoreAddons # KDirWatch
KF5::DBusAddons # kdedmodule
KF5::ConfigCore # KConfig[Group]
)
......@@ -3,5 +3,5 @@ include(ECMAddTests)
ecm_add_tests(
tasktoolstest.cpp
launchertasksmodeltest.cpp
LINK_LIBRARIES taskmanager Qt::Test KF5::Service KF5::IconThemes
LINK_LIBRARIES taskmanager Qt::Test KF5::Service KF5::IconThemes KF5::ConfigCore
)
......@@ -9,6 +9,7 @@
#include "tasktools.h"
#include <QSet>
#include <QTime>
namespace TaskManager
{
......
......@@ -20,6 +20,7 @@
#include "launchertasksmodel_p.h"
#include <QGuiApplication>
#include <QTime>
#include <QTimer>
#include <QUrl>
#include <QVector>
......
......@@ -20,8 +20,6 @@
#include <KLocalizedString>
#include <KStatusNotifierItem>
#include <Plasma/Package>
PlasmaWindowedView::PlasmaWindowedView(QWindow *parent)
: QQuickView(parent)
, m_applet(nullptr)
......
......@@ -15,6 +15,7 @@
#include <QUrl>
#include <KApplicationTrader>
#include <KConfigGroup>
#include <KIO/OpenUrlJob>
#include <KLocalizedString>
#include <KSharedConfig>
......
Supports Markdown
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