@@ -0,0 +1,59 @@
2+ * Copyright (C) 2014 Canonical, Ltd.
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
6+ * the Free Software Foundation; version 3.
8+ * This program is distributed in the hope that it will be useful,
9+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
10+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11+ * GNU General Public License for more details.
13+ * You should have received a copy of the GNU General Public License
14+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
18+import "../../Components"
20+/*! This preview widget shows an horizontal list of
21+ images. The URIs for the images should be an
22+ array in widgetData["sources"]
27+ implicitHeight: units.gu(22)
30+ id: previewImageListView
33+ orientation: ListView.Horizontal
34+ cacheBuffer: width * 3
35+ model: root.widgetData["sources"]
38+ objectName: "placeholderScreenshot"
41+ bottom: parent.bottom
44+ source: "broken_image"
45+ initialWidth: units.gu(13)
46+ visible: previewImageListView.count == 0
49+ delegate: LazyImage {
52+ bottom: parent.bottom
54+ source: modelData ? modelData : ""
56+ initialWidth: units.gu(13)