Fix toolbox not initializing due to enabledChanged signal

The Connections in qml is a QObject and it has an enabledChanged signal by default.
Therefore, we cannot really use the Connections to connect to the enabledChanged signal of e.g.
a python class, because qml complains that there is already a function named enabledChanged() in
the Connections.

To circumvent that, we can simply rename the enabledChanged() signal of the Toolbox to
toolboxEnabledChanged().
This commit is contained in:
Kostas Karmas 2021-03-30 08:51:58 +02:00
parent 7827b36ab7
commit 189d00c3ed
2 changed files with 5 additions and 5 deletions

View file

@ -117,7 +117,7 @@ Item
Connections
{
target: toolbox
function onEnabledChanged() { isEnabled = toolbox.isEnabled(model.id) }
function onToolboxEnabledChanged() { isEnabled = toolbox.isEnabled(model.id) }
}
}
}