mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-29 19:42:53 +02:00
removed qml generated buttons
This commit is contained in:
parent
1753508f53
commit
cad9f66572
1 changed files with 0 additions and 22 deletions
|
@ -166,28 +166,6 @@ Item {
|
||||||
anchors.top: parent.top
|
anchors.top: parent.top
|
||||||
anchors.topMargin: 30
|
anchors.topMargin: 30
|
||||||
}
|
}
|
||||||
|
|
||||||
Component.onCompleted: {
|
|
||||||
console.log("Tablet.onCompleted!");
|
|
||||||
var component = Qt.createComponent("TabletButton.qml");
|
|
||||||
var buttons = [];
|
|
||||||
for (var i = 0; i < 6; i++) {
|
|
||||||
var button = component.createObject(flowMain);
|
|
||||||
button.inDebugMode = true;
|
|
||||||
buttons.push(button);
|
|
||||||
}
|
|
||||||
|
|
||||||
// set button text
|
|
||||||
buttons[0].text = "MUTE";
|
|
||||||
buttons[1].text = "VR";
|
|
||||||
buttons[2].text = "MENU";
|
|
||||||
buttons[3].text = "BUBBLE";
|
|
||||||
buttons[4].text = "SNAP";
|
|
||||||
buttons[5].text = "HELP";
|
|
||||||
|
|
||||||
// set button icon
|
|
||||||
buttons[0].icon = "icons/tablet-mute-icon.svg"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
states: [
|
states: [
|
||||||
State {
|
State {
|
||||||
|
|
Loading…
Reference in a new issue