mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 10:37:56 +02:00
Tablet springboard can now be scrolled
This commit is contained in:
parent
0746d38cae
commit
b251dc9ed6
2 changed files with 28 additions and 11 deletions
|
@ -170,19 +170,28 @@ Item {
|
||||||
anchors.top: bgTopBar.bottom
|
anchors.top: bgTopBar.bottom
|
||||||
anchors.topMargin: 0
|
anchors.topMargin: 0
|
||||||
|
|
||||||
Flow {
|
Flickable {
|
||||||
id: flowMain
|
id: flickable
|
||||||
spacing: 16
|
width: parent.width
|
||||||
anchors.right: parent.right
|
height: parent.height
|
||||||
anchors.rightMargin: 30
|
contentWidth: parent.width
|
||||||
anchors.left: parent.left
|
contentHeight: flowMain.childrenRect.height + flowMain.anchors.topMargin + flowMain.anchors.bottomMargin + flowMain.spacing
|
||||||
anchors.leftMargin: 30
|
clip: true
|
||||||
anchors.bottom: parent.bottom
|
Flow {
|
||||||
anchors.bottomMargin: 30
|
id: flowMain
|
||||||
anchors.top: parent.top
|
spacing: 16
|
||||||
anchors.topMargin: 30
|
anchors.right: parent.right
|
||||||
|
anchors.rightMargin: 30
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.leftMargin: 30
|
||||||
|
anchors.bottom: parent.bottom
|
||||||
|
anchors.bottomMargin: 30
|
||||||
|
anchors.top: parent.top
|
||||||
|
anchors.topMargin: 30
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
states: [
|
states: [
|
||||||
State {
|
State {
|
||||||
name: "muted state"
|
name: "muted state"
|
||||||
|
|
|
@ -15,6 +15,14 @@ var button = tablet.addButton({
|
||||||
text: "BAM!!!"
|
text: "BAM!!!"
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var TEST_BUTTON_COUNT = 10;
|
||||||
|
for (var i = 0; i < TEST_BUTTON_COUNT; i++) {
|
||||||
|
tablet.addButton({
|
||||||
|
text: "TEST_" + i,
|
||||||
|
inDebugMode: true
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
// change the name and isActive state every second...
|
// change the name and isActive state every second...
|
||||||
var names = ["BAM!", "BAM!!", "BAM!!!", "BAM!!!!"];
|
var names = ["BAM!", "BAM!!", "BAM!!!", "BAM!!!!"];
|
||||||
var nameIndex = 0;
|
var nameIndex = 0;
|
||||||
|
|
Loading…
Reference in a new issue