From 9f4d837b2257fa2995f6bc94efe5fa1fddbda9d9 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Mon, 22 Jun 2015 06:45:18 +0200 Subject: [PATCH] Adapt to changes in DevicesModel --- app/qml/DeviceDelegate.qml | 2 +- app/qml/main.qml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/qml/DeviceDelegate.qml b/app/qml/DeviceDelegate.qml index c6f08f107..2b528ca0d 100644 --- a/app/qml/DeviceDelegate.qml +++ b/app/qml/DeviceDelegate.qml @@ -20,7 +20,7 @@ import QtQuick 2.2 import QtQuick.Controls 1.2 -import QtQuick.Layouts 1.2 +import QtQuick.Layouts 1.1 import org.kde.kquickcontrolsaddons 2.0 import org.kde.kdeconnect 1.0 diff --git a/app/qml/main.qml b/app/qml/main.qml index c64ee25d5..2299a9c8c 100644 --- a/app/qml/main.qml +++ b/app/qml/main.qml @@ -57,13 +57,13 @@ ApplicationWindow delegate: Label { text: switch (parseInt(section)) { - case DevicesModel.StatusUnknown: + case DevicesModel.Unknown: return i18n("Unknown") - case DevicesModel.StatusPaired: + case DevicesModel.Paired: return i18n("Paired") - case DevicesModel.StatusReachable: + case DevicesModel.Reachable: return i18n("Reachable") - case (DevicesModel.StatusReachable | DevicesModel.StatusPaired): + case (DevicesModel.Reachable | DevicesModel.Paired): return i18n("Paired & Reachable") } @@ -74,7 +74,7 @@ ApplicationWindow model: DevicesSortProxyModel { sourceModel: DevicesModel { id: connectDeviceModel - displayFilter: DevicesModel.StatusReachable + displayFilter: DevicesModel.Reachable } } delegate: DeviceDelegate {