Details
-
User Story
-
Resolution: Unresolved
-
Not Evaluated
-
Some future release
-
None
Description
Currently it is only possible to create one-line Connections in the Connections Widget which will result in Connections shaped like this:
Connections {
target: mouseArea
onClicked: console.log("clicked")
}
When users try to bind multiple commands to the target and signal handler, what they end up with using the Connections Widget is multiple Connections to the same target and signal handler which won't allow controlling the execution order it will also create an unnecessary overhead in the form of:
Connections { target: downloadButton onDownloadClicked: twirlDownAnimation.running = true } Connections { target: downloadButton onDownloadClicked: downloadPanel.progressBarNumberAnimationRunning = true } Connections { target: downloadButton onDownloadClicked: downloadPanel.numberAnimationRunning = true } Connections { target: downloadButton onDownloadClicked: downloadPanel.visible = true } Connections { target: downloadButton onDownloadClicked: recentThumbBackground1.visible = false } Connections { target: downloadButton onDownloadClicked: tagArea1.visible = false }
If one would like to create multi-line Connections as follows:
Connections { target: downloadButton onDownloadClicked: { twirlDownAnimation.running = true downloadPanel.progressBarNumberAnimationRunning = true downloadPanel.numberAnimationRunning = true downloadPanel.visible = true recentThumbBackground1.visible = false tagArea1.visible = false } }
They would need to use the Connection Editor which allows for multi-line signal handler bindings but looks rather ugly because it includes indentation. Also, the user needs to remember not to forget setting the curly brackets.
I'm suggesting cleaning up the UI of the Connection Editor and Connections Widget to enable the user to create multi-line signal bindings in both.