From 0f334d053f4e12304a2fe258e5547b63cc09aa8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Sun, 6 Jul 2014 19:31:46 +0200 Subject: [PATCH] Fix Plasmoid porting errors Some types changed causing the Plasmoid to end in reference errors. REVIEW: 119149 --- plasmoid/package/contents/ui/FullRepresentation.qml | 8 ++++---- plasmoid/package/contents/ui/main.qml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plasmoid/package/contents/ui/FullRepresentation.qml b/plasmoid/package/contents/ui/FullRepresentation.qml index e865c0ddc..c788b41ef 100644 --- a/plasmoid/package/contents/ui/FullRepresentation.qml +++ b/plasmoid/package/contents/ui/FullRepresentation.qml @@ -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 { } diff --git a/plasmoid/package/contents/ui/main.qml b/plasmoid/package/contents/ui/main.qml index 5cb1fbbdf..744c697c9 100644 --- a/plasmoid/package/contents/ui/main.qml +++ b/plasmoid/package/contents/ui/main.qml @@ -26,5 +26,5 @@ Item Plasmoid.compactRepresentation: CompactRepresentation { } Plasmoid.fullRepresentation: FullRepresentation {} - Plasmoid.preferredRepresentation: fullRepresentation + Plasmoid.preferredRepresentation: Plasmoid.fullRepresentation }