Commit 7e0b2708 authored by Urs Fleisch's avatar Urs Fleisch
Browse files

QML: Single button to select all/deselect.

parent 22ebba5e
...@@ -25,14 +25,17 @@ Item { ...@@ -25,14 +25,17 @@ Item {
"filePath")) "filePath"))
} }
Button { Button {
property bool selectAll: true
iconName: "select" iconName: "select"
width: height width: height
onClicked: app.selectAllFiles() onClicked: {
} if (selectAll) {
Button { app.selectAllFiles()
iconName: "clear" } else {
width: height app.deselectAllFiles()
onClicked: app.deselectAllFiles() }
selectAll = !selectAll
}
} }
Button { Button {
iconName: "go-previous" iconName: "go-previous"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment