Skip to content

Commit 75c9e34

Browse files
committed
More Featured qml materia editor
1 parent 0841b2a commit 75c9e34

File tree

2 files changed

+374
-15
lines changed

2 files changed

+374
-15
lines changed

demos/ff7tkQmlGallery/main.qml

Lines changed: 57 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,63 @@ ApplicationWindow {
125125

126126
Component {
127127
id: materiaEditorComponent
128-
FF7tkControls.MateriaEditor { }
128+
Item {
129+
anchors.fill: parent
130+
Rectangle {
131+
anchors.top: parent.top
132+
anchors.left: parent.left
133+
anchors.right: parent.right
134+
color: palette.alternateBase
135+
height: 50
136+
id: materiaEditorControls
137+
SpinBox {
138+
id: spStarHeight
139+
anchors.top: parent.top
140+
anchors.left: parent.left
141+
from: 0; to: 256
142+
value: materiaEditor.starHeight
143+
onValueChanged: materiaEditor.starHeight = value
144+
}
145+
Text {
146+
anchors.top:parent.top
147+
anchors.left: spStarHeight.right
148+
text: "Id: " + materiaEditor.currentId
149+
}
150+
Text {
151+
anchors.top:parent.top
152+
anchors.right: parent.right
153+
text: "Ap: " + materiaEditor.currentAp
154+
}
155+
CheckBox {
156+
anchors.left: parent.left
157+
anchors.top: spStarHeight.bottom
158+
anchors.bottom: parent.bottom
159+
text: "Editable"
160+
checked: materiaEditor.editable
161+
onCheckedChanged: materiaEditor.editable = checked
162+
}
163+
CheckBox {
164+
anchors.horizontalCenter: parent.horizontalCenter
165+
anchors.top: spStarHeight.bottom
166+
anchors.bottom: parent.bottom
167+
text: "Show PlaceHolder Materia"
168+
checked: materiaEditor.showPlaceHolderMateria
169+
onCheckedChanged: materiaEditor.showPlaceHolderMateria = checked
170+
}
171+
CheckBox {
172+
anchors.right: parent.right
173+
anchors.top: spStarHeight.bottom
174+
anchors.bottom: parent.bottom
175+
text: "ShortLayout"
176+
checked: materiaEditor.fixedHeightSkills
177+
onCheckedChanged: materiaEditor.fixedHeightSkills = checked
178+
}
179+
}
180+
FF7tkControls.MateriaEditor {
181+
id: materiaEditor
182+
anchors { fill: parent; topMargin: materiaEditorControls.height + 3 }
183+
}
184+
}
129185
}
130186

131187
Component {

0 commit comments

Comments
 (0)