aboutsummaryrefslogtreecommitdiff
path: root/components/PrivacyLevelSmall.qml
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-02-06 19:19:54 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-02-06 19:19:54 +0300
commit1364c2b4988d0fad4ef236ca09bff226432764ce (patch)
tree542471c4aefdae74748cdf18e60dab2f440bbc01 /components/PrivacyLevelSmall.qml
parent1571118e7b59779629afdbe5d69e0c69ec75f1aa (diff)
downloadmonzero-gui-1364c2b4988d0fad4ef236ca09bff226432764ce.tar.gz
monzero-gui-1364c2b4988d0fad4ef236ca09bff226432764ce.tar.xz
monzero-gui-1364c2b4988d0fad4ef236ca09bff226432764ce.zip
Password strength level updated
Diffstat (limited to 'components/PrivacyLevelSmall.qml')
-rw-r--r--components/PrivacyLevelSmall.qml10
1 files changed, 9 insertions, 1 deletions
diff --git a/components/PrivacyLevelSmall.qml b/components/PrivacyLevelSmall.qml
index 21c794ef..9321ffbd 100644
--- a/components/PrivacyLevelSmall.qml
+++ b/components/PrivacyLevelSmall.qml
@@ -36,6 +36,13 @@ Item {
height: 40
clip: true
+ onFillLevelChanged: {
+ if (!interactive) {
+ //print("fillLevel: " + fillLevel)
+ fillRect.width = row.positions[fillLevel].currentX + row.x
+ }
+ }
+
Rectangle {
anchors.left: parent.left
anchors.right: parent.right
@@ -134,6 +141,7 @@ Item {
if(index !== -1) {
fillRect.width = Qt.binding(function(){ return row.positions[index].currentX + row.x })
item.fillLevel = index
+ print ("fillLevel: " + item.fillLevel)
}
}
@@ -148,7 +156,7 @@ Item {
anchors.rightMargin: 8
anchors.top: bar.bottom
anchors.topMargin: 5
- property var positions: new Array()
+ property var positions: []
Row {
id: row2