diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-09-12 10:59:51 +0200 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2017-09-12 10:59:51 +0200 |
commit | ac17e4de1b24524ddf37322b49a2b689d366d644 (patch) | |
tree | 2c07e9b437f37fa7809c365c3c2f279dddc4e15d | |
parent | a4f6d04436ff02f0c8a5b6e6f2427e823a18f0d4 (diff) | |
download | kube-ac17e4de1b24524ddf37322b49a2b689d366d644.tar.gz kube-ac17e4de1b24524ddf37322b49a2b689d366d644.zip |
toolbar layout for composer view
-rw-r--r-- | components/kube/contents/ui/ComposerView.qml | 42 |
1 files changed, 31 insertions, 11 deletions
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 { | |||
257 | spacing: Kube.Units.smallSpacing | 257 | spacing: Kube.Units.smallSpacing |
258 | clip: true | 258 | clip: true |
259 | 259 | ||
260 | Repeater { | ||
261 | model: composerController.attachmentModel | ||
262 | delegate: Kube.AttachmentDelegate { | ||
263 | name: model.filename | ||
264 | icon: model.iconName | ||
265 | clip: true | ||
266 | actionIcon: Kube.Icons.remove | ||
267 | onExecute: composerController.removeAttachment(model.url) | ||
268 | } | ||
269 | } | ||
270 | } | ||
271 | |||
272 | RowLayout { | ||
273 | Kube.Button { | ||
274 | text: "b" | ||
275 | checkable: true | ||
276 | } | ||
277 | Kube.Button { | ||
278 | text: "i" | ||
279 | checkable: true | ||
280 | } | ||
281 | Kube.Button { | ||
282 | text: "u" | ||
283 | checkable: true | ||
284 | } | ||
285 | |||
286 | Item { | ||
287 | height: 1 | ||
288 | Layout.fillWidth: true | ||
289 | } | ||
290 | |||
260 | Kube.Button { | 291 | Kube.Button { |
261 | text: qsTr("Attach file") | 292 | text: qsTr("Attach file") |
262 | 293 | ||
@@ -277,17 +308,6 @@ Kube.View { | |||
277 | } | 308 | } |
278 | } | 309 | } |
279 | } | 310 | } |
280 | |||
281 | Repeater { | ||
282 | model: composerController.attachmentModel | ||
283 | delegate: Kube.AttachmentDelegate { | ||
284 | name: model.filename | ||
285 | icon: model.iconName | ||
286 | clip: true | ||
287 | actionIcon: Kube.Icons.remove | ||
288 | onExecute: composerController.removeAttachment(model.url) | ||
289 | } | ||
290 | } | ||
291 | } | 311 | } |
292 | 312 | ||
293 | Kube.TextEditor { | 313 | Kube.TextEditor { |