Commit 0f334d05 authored by Martin Flöser's avatar Martin Flöser

Fix Plasmoid porting errors

Some types changed causing the Plasmoid to end in reference errors.

REVIEW: 119149
parent a8fb015a
......@@ -49,9 +49,9 @@ Item {
function shouldPlasmoidBeShown()
{
if (devicesView.count > 0) {
plasmoid.status = ActiveStatus;
plasmoid.status = PlasmaCore.Types.ActiveStatus;
} else {
plasmoid.status = PassiveStatus;
plasmoid.status = PlasmaCore.Types.PassiveStatus;
}
}
......@@ -62,9 +62,9 @@ Item {
ListView {
id: devicesView
anchors.fill: parent
model: DevicesModel {
model: KdeConnect.DevicesModel {
id: connectDeviceModel
displayFilter: StatusFlags.StatusPaired | StatusFlags.StatusReachable
displayFilter: KdeConnect.DevicesModel.StatusPaired | KdeConnect.DevicesModel.StatusReachable
}
delegate: DeviceDelegate { }
......
......@@ -26,5 +26,5 @@ Item
Plasmoid.compactRepresentation: CompactRepresentation { }
Plasmoid.fullRepresentation: FullRepresentation {}
Plasmoid.preferredRepresentation: fullRepresentation
Plasmoid.preferredRepresentation: Plasmoid.fullRepresentation
}
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