Simplify the PluginChecker

Make the connection property readonly
Alias the device into another property
This commit is contained in:
Aleix Pol 2016-08-21 13:08:36 +02:00
parent f654e75820
commit a96818113d

View file

@ -28,11 +28,12 @@ QtObject {
property string deviceId: ""
property string pluginName: ""
readonly property variant device: DeviceDbusInterfaceFactory.create(deviceId)
property bool available: false
readonly property alias device: conn.target
property Connections connection: Connections {
target: device
readonly property Connections connection: Connections {
id: conn
target: DeviceDbusInterfaceFactory.create(root.deviceId)
onPluginsChanged: pluginsChanged()
}