aboutsummaryrefslogtreecommitdiffhomepage
path: root/qml/Bit.qml
diff options
context:
space:
mode:
authorMarvin Borner2020-04-05 00:53:01 +0200
committerMarvin Borner2020-04-05 00:53:01 +0200
commitbfb99fed8efd71290f67735d27c7aa6bf4ee88f0 (patch)
treeea95fae1c94a764c2bae667d26b116285a3be467 /qml/Bit.qml
parentf6a21a036c8a05fefb207da0c49655b935dc4a68 (diff)
Added simple help legend/bar
Diffstat (limited to 'qml/Bit.qml')
-rw-r--r--qml/Bit.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/qml/Bit.qml b/qml/Bit.qml
index 6563e73..1b1e4b1 100644
--- a/qml/Bit.qml
+++ b/qml/Bit.qml
@@ -49,7 +49,7 @@ Loader {
}
} else if (index !== bits){
var num = Math.floor(Math.random() * (Math.pow(2, bits) - 1)) + 1;
- this.text = num;
+ this.text = root.help ? (Math.pow(2, bits - index - 1)) : num;
root.matrix[index] = num;
} else {
this.text = "0/1";