Commit 6176e4b8 authored by Han Young's avatar Han Young
Browse files

add swap units button

parent 36d9f6d7
......@@ -44,6 +44,16 @@ Kirigami.Page {
}
}
}
Controls.Button {
Layout.alignment: Qt.AlignHCenter
text: i18n("swap")
icon.name: "gtk-convert"
onClicked: {
let tmp = fromTumbler.currentIndex;
fromTumbler.currentIndex = toTumbler.currentIndex;
toTumbler.currentIndex = tmp;
}
}
Component {
id: delegateComponent
Text {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment