Adapt to changes in DevicesModel

This commit is contained in:
Aleix Pol 2015-06-22 06:45:18 +02:00
parent 9fa8538bf1
commit 9f4d837b22
2 changed files with 6 additions and 6 deletions

View file

@ -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

View file

@ -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 {