[ui] GraphEditor: improve alignments

Reduce usage of anchors (except centerIn/fill).
Display of Next/Previous for IntSelector.
This commit is contained in:
Fabien Castan 2024-08-20 23:44:34 +02:00 committed by Aurore LAFAURIE
parent ff86a5182e
commit 48d08b1f88
4 changed files with 81 additions and 93 deletions

View file

@ -388,10 +388,8 @@ Item {
expandButton.canExpand = uigraph.canExpandForLoop(edgeMenu.currentEdge)
}
contentItem: GridLayout {
layoutDirection: Qt.LeftToRight
columns: 2
columnSpacing: 20
contentItem: Row {
spacing: 20
Column {
id: listAttrColumn
@ -403,13 +401,11 @@ Item {
text: "<b>Iteration:</b>"
color: activePalette.text
bottomPadding: 15
}
IntSelector {
tooltipText: "Iterations"
width: listAttrColumn.width
anchors.top: listAttrMenuText.bottom
anchors.horizontalCenter: listAttrColumn.horizontalCenter
visible: edgeMenu.currentEdge && edgeMenu.forLoop
// We add 1 to the index because of human readable index (starting at 1)
@ -439,7 +435,7 @@ Item {
color: activePalette.text
}
RowLayout {
Row {
MaterialToolButton {
font.pointSize: 13
ToolTip.text: "Remove edge"