From ac17e4de1b24524ddf37322b49a2b689d366d644 Mon Sep 17 00:00:00 2001 From: Michael Bohlender Date: Tue, 12 Sep 2017 10:59:51 +0200 Subject: toolbar layout for composer view --- components/kube/contents/ui/ComposerView.qml | 42 ++++++++++++++++++++-------- 1 file changed, 31 insertions(+), 11 deletions(-) (limited to 'components') diff --git a/components/kube/contents/ui/ComposerView.qml b/components/kube/contents/ui/ComposerView.qml index 464322cf..2efb69f6 100644 --- a/components/kube/contents/ui/ComposerView.qml +++ b/components/kube/contents/ui/ComposerView.qml @@ -257,6 +257,37 @@ Kube.View { spacing: Kube.Units.smallSpacing clip: true + Repeater { + model: composerController.attachmentModel + delegate: Kube.AttachmentDelegate { + name: model.filename + icon: model.iconName + clip: true + actionIcon: Kube.Icons.remove + onExecute: composerController.removeAttachment(model.url) + } + } + } + + RowLayout { + Kube.Button { + text: "b" + checkable: true + } + Kube.Button { + text: "i" + checkable: true + } + Kube.Button { + text: "u" + checkable: true + } + + Item { + height: 1 + Layout.fillWidth: true + } + Kube.Button { text: qsTr("Attach file") @@ -277,17 +308,6 @@ Kube.View { } } } - - Repeater { - model: composerController.attachmentModel - delegate: Kube.AttachmentDelegate { - name: model.filename - icon: model.iconName - clip: true - actionIcon: Kube.Icons.remove - onExecute: composerController.removeAttachment(model.url) - } - } } Kube.TextEditor { -- cgit v1.2.3