Adapt to changes in DevicesModel
This commit is contained in:
parent
9fa8538bf1
commit
9f4d837b22
2 changed files with 6 additions and 6 deletions
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
import QtQuick 2.2
|
import QtQuick 2.2
|
||||||
import QtQuick.Controls 1.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.kquickcontrolsaddons 2.0
|
||||||
import org.kde.kdeconnect 1.0
|
import org.kde.kdeconnect 1.0
|
||||||
|
|
||||||
|
|
|
@ -57,13 +57,13 @@ ApplicationWindow
|
||||||
delegate: Label {
|
delegate: Label {
|
||||||
text: switch (parseInt(section))
|
text: switch (parseInt(section))
|
||||||
{
|
{
|
||||||
case DevicesModel.StatusUnknown:
|
case DevicesModel.Unknown:
|
||||||
return i18n("Unknown")
|
return i18n("Unknown")
|
||||||
case DevicesModel.StatusPaired:
|
case DevicesModel.Paired:
|
||||||
return i18n("Paired")
|
return i18n("Paired")
|
||||||
case DevicesModel.StatusReachable:
|
case DevicesModel.Reachable:
|
||||||
return i18n("Reachable")
|
return i18n("Reachable")
|
||||||
case (DevicesModel.StatusReachable | DevicesModel.StatusPaired):
|
case (DevicesModel.Reachable | DevicesModel.Paired):
|
||||||
return i18n("Paired & Reachable")
|
return i18n("Paired & Reachable")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,7 +74,7 @@ ApplicationWindow
|
||||||
model: DevicesSortProxyModel {
|
model: DevicesSortProxyModel {
|
||||||
sourceModel: DevicesModel {
|
sourceModel: DevicesModel {
|
||||||
id: connectDeviceModel
|
id: connectDeviceModel
|
||||||
displayFilter: DevicesModel.StatusReachable
|
displayFilter: DevicesModel.Reachable
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
delegate: DeviceDelegate {
|
delegate: DeviceDelegate {
|
||||||
|
|
Loading…
Reference in a new issue