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 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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue