mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 07:09:47 +02:00
added debug mode
This commit is contained in:
parent
434e7dfbbd
commit
edd1a02aa1
1 changed files with 9 additions and 6 deletions
|
@ -7,6 +7,7 @@ Item {
|
||||||
property string text: "EDIT"
|
property string text: "EDIT"
|
||||||
property string icon: "icons/edit-icon.svg"
|
property string icon: "icons/edit-icon.svg"
|
||||||
property bool isActive: false
|
property bool isActive: false
|
||||||
|
property bool inDebugMode: true
|
||||||
width: 129
|
width: 129
|
||||||
height: 129
|
height: 129
|
||||||
|
|
||||||
|
@ -99,12 +100,14 @@ Item {
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
onClicked: {
|
onClicked: {
|
||||||
console.log("Tablet Button Clicked!");
|
console.log("Tablet Button Clicked!");
|
||||||
if (tabletButton.isActive) {
|
if (tabletButton.inDebugMode) {
|
||||||
tabletButton.state = "base state";
|
if (tabletButton.isActive) {
|
||||||
tabletButton.isActive = false;
|
tabletButton.state = "base state";
|
||||||
} else {
|
tabletButton.isActive = false;
|
||||||
tabletButton.state = "active state";
|
} else {
|
||||||
tabletButton.isActive = true;
|
tabletButton.state = "active state";
|
||||||
|
tabletButton.isActive = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
tabletButton.clicked();
|
tabletButton.clicked();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue