Commit 5f02e49f authored by Laurent Montel's avatar Laurent Montel
Browse files

compile without deprecated methods

parent bd0112e7
Pipeline #159434 passed with stage
in 1 minute and 29 seconds
......@@ -9,14 +9,13 @@
#include "../debug.h"
#include <QDebug>
#include <QQuickItem>
#include <KActionCollection>
#include <Plasma/Corona>
#include <QAction>
GroupedAppletsContainer::GroupedAppletsContainer(QObject *parent, const QVariantList &args)
: Plasma::Applet(parent, args)
GroupedAppletsContainer::GroupedAppletsContainer(QObject *parent, const KPluginMetaData &data, const QVariantList &args)
: Plasma::Applet(parent, data, args)
{
}
......
......@@ -9,8 +9,7 @@
#define GROUPEDAPPLETSCONTAINER_H
#include <Plasma/Applet>
class QQuickItem;
#include <QQuickItem>
class GroupedAppletsContainer : public Plasma::Applet
{
......@@ -18,7 +17,7 @@ class GroupedAppletsContainer : public Plasma::Applet
Q_PROPERTY(QQuickItem *internalContainmentItem READ internalContainmentItem NOTIFY internalContainmentItemChanged)
public:
explicit GroupedAppletsContainer(QObject *parent, const QVariantList &args);
explicit GroupedAppletsContainer(QObject *parent, const KPluginMetaData &data, const QVariantList &args);
~GroupedAppletsContainer() override;
void init() override;
......
......@@ -10,7 +10,6 @@
#include <QQuickTextDocument>
#include <QTextCharFormat>
#include <QTextCodec>
QT_BEGIN_NAMESPACE
class QTextDocument;
......
......@@ -94,8 +94,8 @@ const char source[] = "source";
}
}
WeatherApplet::WeatherApplet(QObject *parent, const QVariantList &args)
: Plasma::Applet(parent, args)
WeatherApplet::WeatherApplet(QObject *parent, const KPluginMetaData &data, const QVariantList &args)
: Plasma::Applet(parent, data, args)
{
Plasma::DataEngine *dataengine = dataEngine(QStringLiteral("weather"));
const QVariantList plugins = dataengine->containerForSource(QLatin1String("ions"))->data().values();
......
......@@ -49,7 +49,7 @@ class WeatherApplet : public Plasma::Applet, public Plasma::DataEngineConsumer
Q_PROPERTY(bool temperatureShownInCompactMode READ temperatureShownInCompactMode NOTIFY temperatureShownInCompactModeChanged FINAL)
public:
WeatherApplet(QObject *parent, const QVariantList &args);
WeatherApplet(QObject *parent, const KPluginMetaData &data, const QVariantList &args);
~WeatherApplet() override;
public: // Plasma::Applet API
......
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