Skip to content

Commit

Permalink
Change arrangement of the Arrange buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
cbjeukendrup authored and vpereverzev committed Oct 24, 2022
1 parent 0de008a commit f46a89d
Showing 1 changed file with 20 additions and 19 deletions.
Expand Up @@ -29,7 +29,7 @@ Column {

property NavigationPanel navigationPanel: null
property int navigationRowStart: 0
property int navigationRowEnd: forwardsButton.navigation.row
property int navigationRowEnd: toBackButton.navigation.row

signal pushBackwardsRequested()
signal pushForwardsRequested()
Expand Down Expand Up @@ -57,35 +57,36 @@ Column {
width: parent.width

FlatButton {
id: forwardsButton
anchors.left: parent.left
anchors.right: parent.horizontalCenter
anchors.rightMargin: 4

navigation.name: "Backwards"
navigation.name: "Forwards"
navigation.panel: root.navigationPanel
navigation.row: root.navigationRowStart + 1

text: qsTrc("inspector", "Backwards")
text: qsTrc("inspector", "Forwards")

onClicked: {
root.pushBackwardsRequested()
root.pushForwardsRequested()
}
}

FlatButton {
id: forwardsButton
id: toFrontButton
anchors.left: parent.horizontalCenter
anchors.leftMargin: 4
anchors.right: parent.right

navigation.name: "Forwards"
navigation.name: "To front"
navigation.panel: root.navigationPanel
navigation.row: root.navigationRowStart + 2
navigation.row: forwardsButton.navigation.row + 1

text: qsTrc("inspector", "Forwards")
text: qsTrc("inspector", "To front")

onClicked: {
root.pushForwardsRequested()
root.pushToFrontRequested()
}
}
}
Expand All @@ -95,36 +96,36 @@ Column {
width: parent.width

FlatButton {
id: toBackButton
id: backwardsButton
anchors.left: parent.left
anchors.right: parent.horizontalCenter
anchors.rightMargin: 4

navigation.name: "To Back"
navigation.name: "Backwards"
navigation.panel: root.navigationPanel
navigation.row: root.navigationRowStart + 1
navigation.row: toFrontButton.navigation.row + 1

text: qsTrc("inspector", "To back")
text: qsTrc("inspector", "Backwards")

onClicked: {
root.pushToBackRequested()
root.pushBackwardsRequested()
}
}

FlatButton {
id: toFrontButton
id: toBackButton
anchors.left: parent.horizontalCenter
anchors.leftMargin: 4
anchors.right: parent.right

navigation.name: "To Front"
navigation.name: "To back"
navigation.panel: root.navigationPanel
navigation.row: root.navigationRowStart + 2
navigation.row: backwardsButton.navigation.row + 1

text: qsTrc("inspector", "To front")
text: qsTrc("inspector", "To back")

onClicked: {
root.pushToFrontRequested()
root.pushToBackRequested()
}
}
}
Expand Down

0 comments on commit f46a89d

Please sign in to comment.