add simple layout demo
This commit is contained in:
@@ -12,19 +12,28 @@ ApplicationWindow {
|
||||
|
||||
ListView {
|
||||
width: parent.width
|
||||
model: 1
|
||||
model: 2
|
||||
delegate: Rectangle {
|
||||
Column {
|
||||
anchors.centerIn: parent
|
||||
Text {
|
||||
text: {return "Snake.js"}
|
||||
text: {
|
||||
switch (index) {
|
||||
case 0:
|
||||
return "SimpleDemo.es5.js"
|
||||
case 1:
|
||||
return "Snake.es5.js"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
width: parent.width
|
||||
height: 60
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
onClicked: {demoBridge.navigate(index)}
|
||||
onClicked: {
|
||||
demoBridge.navigate(index)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -3,9 +3,5 @@ import QtQuick.Controls 2.5
|
||||
|
||||
Flex {
|
||||
flexDirection: "column"
|
||||
alignItems: "center"
|
||||
alignSelf: "center"
|
||||
justifyContent: "spaceAround"
|
||||
alignContent: "stretch"
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user