Simplify the PluginChecker
Make the connection property readonly Alias the device into another property
This commit is contained in:
parent
f654e75820
commit
a96818113d
1 changed files with 4 additions and 3 deletions
|
@ -28,11 +28,12 @@ QtObject {
|
||||||
|
|
||||||
property string deviceId: ""
|
property string deviceId: ""
|
||||||
property string pluginName: ""
|
property string pluginName: ""
|
||||||
readonly property variant device: DeviceDbusInterfaceFactory.create(deviceId)
|
|
||||||
property bool available: false
|
property bool available: false
|
||||||
|
readonly property alias device: conn.target
|
||||||
|
|
||||||
property Connections connection: Connections {
|
readonly property Connections connection: Connections {
|
||||||
target: device
|
id: conn
|
||||||
|
target: DeviceDbusInterfaceFactory.create(root.deviceId)
|
||||||
onPluginsChanged: pluginsChanged()
|
onPluginsChanged: pluginsChanged()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue