diff options
author | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-12-07 22:25:36 +0100 |
---|---|---|
committer | Michael Bohlender <michael.bohlender@kdemail.net> | 2016-12-07 22:25:36 +0100 |
commit | f3fe0d6d2c52604bf0dc077676f84f5bc87e600b (patch) | |
tree | 0ecf3d8af6a2bd9ff77b25ce45492378b29656ae /components/package/contents/ui/AttachmentDelegate.qml | |
parent | a74060d751cdf2346d04c1d009f8d8b629561d5d (diff) | |
download | kube-f3fe0d6d2c52604bf0dc077676f84f5bc87e600b.tar.gz kube-f3fe0d6d2c52604bf0dc077676f84f5bc87e600b.zip |
display attchments as flow
Diffstat (limited to 'components/package/contents/ui/AttachmentDelegate.qml')
-rw-r--r-- | components/package/contents/ui/AttachmentDelegate.qml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/components/package/contents/ui/AttachmentDelegate.qml b/components/package/contents/ui/AttachmentDelegate.qml index 91e07d49..ffacb46c 100644 --- a/components/package/contents/ui/AttachmentDelegate.qml +++ b/components/package/contents/ui/AttachmentDelegate.qml | |||
@@ -21,6 +21,7 @@ import QtQuick.Layouts 1.1 | |||
21 | import org.kde.kirigami 1.0 as Kirigami | 21 | import org.kde.kirigami 1.0 as Kirigami |
22 | 22 | ||
23 | Item { | 23 | Item { |
24 | id: root | ||
24 | 25 | ||
25 | property string name | 26 | property string name |
26 | property string icon | 27 | property string icon |
@@ -54,12 +55,12 @@ Item { | |||
54 | height: parent.height | 55 | height: parent.height |
55 | width: height | 56 | width: height |
56 | 57 | ||
57 | source: "text-csv" | 58 | source: root.icon |
58 | } | 59 | } |
59 | } | 60 | } |
60 | 61 | ||
61 | Text { | 62 | Text { |
62 | text: "some attachment.csv" | 63 | text: root.name |
63 | color: Kirigami.Theme.textColor | 64 | color: Kirigami.Theme.textColor |
64 | } | 65 | } |
65 | } | 66 | } |