diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-07-21 05:33:24 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2017-07-21 05:33:24 +0200 |
commit | 0fd0d8ce5f91c037e12e4d61f05d66437eb4088b (patch) | |
tree | 015425c563bb667a4eddc282e95692c858879a44 /framework/qml/Button.qml | |
parent | a5e8d20f23a7ee951b8db4166eb0ad68a8bdf0e0 (diff) | |
download | kube-0fd0d8ce5f91c037e12e4d61f05d66437eb4088b.tar.gz kube-0fd0d8ce5f91c037e12e4d61f05d66437eb4088b.zip |
Return pressed & activeFocus
Diffstat (limited to 'framework/qml/Button.qml')
-rw-r--r-- | framework/qml/Button.qml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/framework/qml/Button.qml b/framework/qml/Button.qml index 7473c140..83f02cff 100644 --- a/framework/qml/Button.qml +++ b/framework/qml/Button.qml | |||
@@ -32,6 +32,7 @@ T.Button { | |||
32 | 32 | ||
33 | clip: true | 33 | clip: true |
34 | hoverEnabled: true | 34 | hoverEnabled: true |
35 | Keys.onReturnPressed: root.clicked() | ||
35 | 36 | ||
36 | background: Rectangle { | 37 | background: Rectangle { |
37 | color: Colors.buttonColor | 38 | color: Colors.buttonColor |
@@ -49,6 +50,7 @@ T.Button { | |||
49 | 50 | ||
50 | contentItem: Label { | 51 | contentItem: Label { |
51 | text: root.text | 52 | text: root.text |
53 | font.underline: root.activeFocus | ||
52 | elide: Text.ElideRight | 54 | elide: Text.ElideRight |
53 | horizontalAlignment: Text.AlignHCenter | 55 | horizontalAlignment: Text.AlignHCenter |
54 | verticalAlignment: Text.AlignVCenter | 56 | verticalAlignment: Text.AlignVCenter |