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"]