diff options
author | Sandro Knauß <sknauss@kde.org> | 2016-10-10 13:01:15 +0200 |
---|---|---|
committer | Sandro Knauß <sknauss@kde.org> | 2016-10-10 13:01:15 +0200 |
commit | 6b6f20ffbe06402abcc7d4721ad1f647c3fc4c46 (patch) | |
tree | 6e2762d879c64373519b0506e9a66ddc27f04830 /components/package/contents/ui/Outbox.qml | |
parent | 349e404b539c1f9d1feb54658e2e6fbbd2165462 (diff) | |
parent | 5fa8608e9877eab40336a60ed8ed979aaf3cfbd0 (diff) | |
download | kube-6b6f20ffbe06402abcc7d4721ad1f647c3fc4c46.tar.gz kube-6b6f20ffbe06402abcc7d4721ad1f647c3fc4c46.zip |
Merge branch 'develop' into dev/mimetreeinterface
Diffstat (limited to 'components/package/contents/ui/Outbox.qml')
-rw-r--r-- | components/package/contents/ui/Outbox.qml | 47 |
1 files changed, 28 insertions, 19 deletions
diff --git a/components/package/contents/ui/Outbox.qml b/components/package/contents/ui/Outbox.qml index 4baa0eae..01501410 100644 --- a/components/package/contents/ui/Outbox.qml +++ b/components/package/contents/ui/Outbox.qml | |||
@@ -1,19 +1,20 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (C) 2016 Michael Bohlender <michael.bohlender@kdemail.net> | 2 | Copyright (C) 2016 Michael Bohlender, <michael.bohlender@kdemail.net> |
3 | * | 3 | |
4 | * This program is free software; you can redistribute it and/or modify | 4 | This program is free software; you can redistribute it and/or modify |
5 | * it under the terms of the GNU General Public License as published by | 5 | it under the terms of the GNU General Public License as published by |
6 | * the Free Software Foundation; either version 3 of the License, or | 6 | the Free Software Foundation; either version 2 of the License, or |
7 | * (at your option) any later version. | 7 | (at your option) any later version. |
8 | * | 8 | |
9 | * This program is distributed in the hope that it will be useful, | 9 | This program is distributed in the hope that it will be useful, |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 | * GNU General Public License for more details. | 12 | GNU General Public License for more details. |
13 | * | 13 | |
14 | * You should have received a copy of the GNU General Public License | 14 | You should have received a copy of the GNU General Public License along |
15 | * along with this program; if not, see <http://www.gnu.org/licenses/>. | 15 | with this program; if not, write to the Free Software Foundation, Inc., |
16 | */ | 16 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
17 | */ | ||
17 | 18 | ||
18 | import QtQuick 2.4 | 19 | import QtQuick 2.4 |
19 | import QtQuick.Controls 1.3 | 20 | import QtQuick.Controls 1.3 |
@@ -38,13 +39,15 @@ ToolButton { | |||
38 | Rectangle { | 39 | Rectangle { |
39 | id: dialog | 40 | id: dialog |
40 | 41 | ||
42 | property int modelCount: 5 //FIXME replace with actual model | ||
43 | |||
41 | anchors { | 44 | anchors { |
42 | top: parent.bottom | 45 | top: parent.bottom |
43 | horizontalCenter: parent.horizontalCenter | 46 | horizontalCenter: parent.horizontalCenter |
44 | } | 47 | } |
45 | 48 | ||
46 | height: Kirigami.Units.gridUnit * 15 | 49 | height: modelCount * Kirigami.Units.gridUnit * 3 + 10//scrollView.height height: Kirigami.Units.gridUnit * 15 |
47 | width: Kirigami.Units.gridUnit * 12 | 50 | width: Kirigami.Units.gridUnit * 12 |
48 | 51 | ||
49 | color: Kirigami.Theme.backgroundColor | 52 | color: Kirigami.Theme.backgroundColor |
50 | border.width: 1 | 53 | border.width: 1 |
@@ -55,16 +58,22 @@ ToolButton { | |||
55 | 58 | ||
56 | //BEGIN Dialog Content | 59 | //BEGIN Dialog Content |
57 | ScrollView { | 60 | ScrollView { |
61 | id: scrollView | ||
62 | |||
58 | anchors { | 63 | anchors { |
59 | fill: parent | 64 | fill: parent |
60 | margins: 1 | 65 | margins: 5 |
61 | } | 66 | } |
67 | |||
62 | ListView { | 68 | ListView { |
63 | id: listView | 69 | id: listView |
64 | 70 | ||
65 | model: 3 | 71 | model: 5 |
66 | 72 | ||
67 | delegate: Kirigami.AbstractListItem { | 73 | delegate: Kirigami.AbstractListItem { |
74 | |||
75 | height: Kirigami.Units.gridUnit * 3 | ||
76 | |||
68 | Kirigami.Label { | 77 | Kirigami.Label { |
69 | anchors.centerIn: parent | 78 | anchors.centerIn: parent |
70 | text: "Subjext subxetson" | 79 | text: "Subjext subxetson" |