Skip to content

Commit 04baf43

Browse files
committed
Fix FloatingActions icons and move back button
1 parent 84dffbe commit 04baf43

File tree

1 file changed

+29
-18
lines changed

1 file changed

+29
-18
lines changed

qml/FloatingActions.qml

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,19 @@ import MaliitKeyboard 2.0
66

77
import "keys/"
88

9-
RowLayout {
9+
Item {
1010
anchors {
11-
top: parent.top
12-
left: parent.left
13-
right: parent.right
11+
fill: parent
1412
margins: Device.gu(1)
1513
topMargin: toolbar.height + Device.gu(1)
1614
}
17-
15+
16+
RowLayout {
17+
anchors {
18+
left: parent.left
19+
top: parent.top
20+
}
21+
1822
FloatingActionKey {
1923
id: startLineButton
2024

@@ -50,27 +54,33 @@ RowLayout {
5054
}
5155
}
5256
}
53-
57+
}
58+
5459
FloatingActionKey {
5560
id: doneButton
5661

57-
Layout.alignment: Qt.AlignHCenter
58-
Layout.fillWidth: true
59-
Layout.minimumWidth: Device.gu(5)
60-
Layout.maximumWidth: Device.gu(20)
61-
Layout.preferredHeight: Device.gu(5)
62+
width: Device.gu(5)
63+
height: width
64+
anchors {
65+
left: parent.left
66+
bottom: parent.bottom
67+
}
6268
keyFeedback: false
6369
action: Action {
64-
text: qsTr("Done")
65-
icon.name: "ok"
66-
onTriggered: {
67-
fullScreenItem.exitSwipeMode()
68-
}
70+
icon.name: "go-previous"
71+
onTriggered: {
72+
fullScreenItem.exitSwipeMode()
6973
}
74+
}
7075
}
7176

72-
73-
77+
78+
RowLayout {
79+
anchors {
80+
right: parent.right
81+
top: parent.top
82+
}
83+
7484
FloatingActionKey {
7585
id: endDocButton
7686

@@ -106,4 +116,5 @@ RowLayout {
106116
}
107117
}
108118
}
119+
}
109120
}

0 commit comments

Comments
 (0)