summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-09-13 09:52:40 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-09-13 09:52:40 +0200
commit1cd39d6a9500aa1ed080fb0ba05386f20de00e75 (patch)
tree879e6d9633ff14cd684397da5a76077d3a008944
parentc7dcae386503a88d05ad575a29e571dd5fc40c87 (diff)
downloadkube-1cd39d6a9500aa1ed080fb0ba05386f20de00e75.tar.gz
kube-1cd39d6a9500aa1ed080fb0ba05386f20de00e75.zip
Avoid losing focus when clicking toolbuttons
-rw-r--r--components/kube/contents/ui/ComposerView.qml7
1 files changed, 5 insertions, 2 deletions
diff --git a/components/kube/contents/ui/ComposerView.qml b/components/kube/contents/ui/ComposerView.qml
index fcc9c849..f82b4269 100644
--- a/components/kube/contents/ui/ComposerView.qml
+++ b/components/kube/contents/ui/ComposerView.qml
@@ -274,10 +274,10 @@ Kube.View {
274 274
275 Kube.Button { 275 Kube.Button {
276 id: html 276 id: html
277 //FIXME get the html composer to do something useful
278 visible: false
279 text: checked ? qsTr("plain") : qsTr("html") 277 text: checked ? qsTr("plain") : qsTr("html")
280 checkable: true 278 checkable: true
279 focusPolicy: Qt.TabFocus
280 focus: false
281 } 281 }
282 282
283 Row { 283 Row {
@@ -290,6 +290,7 @@ Kube.View {
290 checked: document.bold 290 checked: document.bold
291 onClicked: document.bold = !document.bold 291 onClicked: document.bold = !document.bold
292 focusPolicy: Qt.TabFocus 292 focusPolicy: Qt.TabFocus
293 focus: false
293 } 294 }
294 Kube.IconButton { 295 Kube.IconButton {
295 iconName: Kube.Icons.italic 296 iconName: Kube.Icons.italic
@@ -297,6 +298,7 @@ Kube.View {
297 checked: document.italic 298 checked: document.italic
298 onClicked: document.italic = !document.italic 299 onClicked: document.italic = !document.italic
299 focusPolicy: Qt.TabFocus 300 focusPolicy: Qt.TabFocus
301 focus: false
300 } 302 }
301 Kube.IconButton { 303 Kube.IconButton {
302 iconName: Kube.Icons.underline 304 iconName: Kube.Icons.underline
@@ -304,6 +306,7 @@ Kube.View {
304 checked: document.underline 306 checked: document.underline
305 onClicked: document.underline = !document.underline 307 onClicked: document.underline = !document.underline
306 focusPolicy: Qt.TabFocus 308 focusPolicy: Qt.TabFocus
309 focus: false
307 } 310 }
308 } 311 }
309 312