From 26755c8d861b0f5dfc92590d964c8954a4c3812f Mon Sep 17 00:00:00 2001 From: Sam Hadow Date: Tue, 12 Mar 2024 23:46:23 +0100 Subject: [PATCH] PlasmaCore.DataSource counterparts --- package/contents/ui/ConfigButtons.qml | 3 ++- package/contents/ui/FullRepresentation.qml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package/contents/ui/ConfigButtons.qml b/package/contents/ui/ConfigButtons.qml index c6d79e7..eb1785d 100644 --- a/package/contents/ui/ConfigButtons.qml +++ b/package/contents/ui/ConfigButtons.qml @@ -20,6 +20,7 @@ import QtQuick 2.5 import QtQml.Models 2.1 import org.kde.plasma.core as PlasmaCore +import org.kde.plasma.plasma5support as Plasma5Support import org.kde.kirigami as Kirigami import org.kde.kirigami 2.5 as Kirigami @@ -111,7 +112,7 @@ GridView { NumberAnimation { properties: "x,y"; easing.type: Easing.OutQuad } } - PlasmaCore.DataSource { + Plasma5Support.DataSource { id: pmSource engine: "powermanagement" connectedSources: ["PowerDevil"] diff --git a/package/contents/ui/FullRepresentation.qml b/package/contents/ui/FullRepresentation.qml index d6d27d9..772742a 100644 --- a/package/contents/ui/FullRepresentation.qml +++ b/package/contents/ui/FullRepresentation.qml @@ -23,6 +23,7 @@ import QtQuick 2.3 import org.kde.plasma.plasmoid 2.0 import QtQuick.Layouts 1.1 import org.kde.plasma.core as PlasmaCore +import org.kde.plasma.plasma5support as Plasma5Support import org.kde.kirigami as Kirigami import org.kde.plasma.components as PlasmaComponents import org.kde.plasma.extras as PlasmaExtras @@ -102,7 +103,7 @@ Item { } } - PlasmaCore.DataSource { + Plasma5Support.DataSource { id: pmSource engine: "powermanagement" connectedSources: ["PowerDevil"]