Skip to content

Commit

Permalink
fix: materia editor ap spinbox and its demo controls
Browse files Browse the repository at this point in the history
  • Loading branch information
sithlord48 committed Apr 8, 2024
1 parent f37bbb0 commit a9cc479
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 20 deletions.
35 changes: 16 additions & 19 deletions demos/ff7tkQmlGallery/main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ ApplicationWindow {
anchors.left: parent.left
anchors.right: parent.right
color: palette.alternateBase
height: 50
height: 55
id: materiaEditorControls
QQC.SpinBox {
id: spStarHeight
Expand All @@ -148,44 +148,41 @@ ApplicationWindow {
value: materiaEditor.starHeight
onValueChanged: materiaEditor.starHeight = value
}
Label {
anchors.top:parent.top
anchors.left: spStarHeight.right
text: "Id: " + materiaEditor.currentId
}
Label {
anchors.top:parent.top
anchors.right: parent.right
text: "Ap: " + materiaEditor.currentAp
}
CheckBox {
anchors.left: parent.left
anchors.top: spStarHeight.bottom
anchors.bottom: parent.bottom
anchors.verticalCenter: spStarHeight.verticalCenter
anchors.left: spStarHeight.right
text: "Editable"
checked: materiaEditor.editable
onCheckedChanged: materiaEditor.editable = checked
}
CheckBox {
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: spStarHeight.bottom
anchors.bottom: parent.bottom
anchors.verticalCenter: spStarHeight.verticalCenter
text: "Show PlaceHolder Materia"
checked: materiaEditor.showPlaceHolderMateria
onCheckedChanged: materiaEditor.showPlaceHolderMateria = checked
}
CheckBox {
anchors.right: parent.right
anchors.top: spStarHeight.bottom
anchors.bottom: parent.bottom
anchors.verticalCenter: spStarHeight.verticalCenter
text: "ShortLayout"
checked: materiaEditor.fixedHeightSkills
onCheckedChanged: materiaEditor.fixedHeightSkills = checked
}
Label {
anchors.top:spStarHeight.bottom
anchors.left: parent.left
text: "Id: " + materiaEditor.currentId
}
Label {
anchors.top:spStarHeight.bottom
anchors.right: parent.right
text: "Ap: " + materiaEditor.currentAp
}
}
MateriaEditor {
id: materiaEditor
anchors { fill: parent; topMargin: materiaEditorControls.height + 6; leftMargin: 6; rightMargin: 6 }
anchors { fill: parent; topMargin: materiaEditorControls.height + 2; leftMargin: 6; rightMargin: 6 }
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/ff7tkQuick/Controls/MateriaEditor.qml
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ Item {
}
SpinBox {
id: sbAP
anchors.top: parent.top; anchors.bottom: parent.bottom
anchors.verticalCenter: parent.verticalCenter
anchors.left: txtAp.right; anchors.leftMargin: 6
visible: root.editable
editable: true
Expand Down

0 comments on commit a9cc479

Please sign in to comment.