Changeset View
Changeset View
Standalone View
Standalone View
src/qml/GridBrowserDelegate.qml
Show All 15 Lines | |||||
16 | */ | 16 | */ | ||
17 | 17 | | |||
18 | import QtQuick 2.7 | 18 | import QtQuick 2.7 | ||
19 | import QtQuick.Controls 2.2 | 19 | import QtQuick.Controls 2.2 | ||
20 | import QtQuick.Window 2.2 | 20 | import QtQuick.Window 2.2 | ||
21 | import QtQml.Models 2.1 | 21 | import QtQml.Models 2.1 | ||
22 | import QtQuick.Layouts 1.2 | 22 | import QtQuick.Layouts 1.2 | ||
23 | import QtGraphicalEffects 1.0 | 23 | import QtGraphicalEffects 1.0 | ||
24 | import org.kde.kirigami 2.5 as Kirigami | ||||
24 | 25 | | |||
25 | FocusScope { | 26 | FocusScope { | ||
26 | id: gridEntry | 27 | id: gridEntry | ||
27 | 28 | | |||
28 | property var imageUrl | 29 | property var imageUrl | ||
29 | property bool shadowForImage | 30 | property bool shadowForImage | ||
30 | property alias mainText: mainLabel.text | 31 | property alias mainText: mainLabel.text | ||
31 | property alias secondaryText: secondaryLabel.text | 32 | property alias secondaryText: secondaryLabel.text | ||
▲ Show 20 Lines • Show All 163 Lines • ▼ Show 20 Line(s) | 190 | layer.effect: DropShadow { | |||
195 | 196 | | |||
196 | color: myPalette.shadow | 197 | color: myPalette.shadow | ||
197 | } | 198 | } | ||
198 | } | 199 | } | ||
199 | } | 200 | } | ||
200 | Loader { | 201 | Loader { | ||
201 | active: isPartial | 202 | active: isPartial | ||
202 | 203 | | |||
203 | anchors.fill: parent | 204 | anchors.centerIn: parent | ||
205 | height: Kirigami.Units.gridUnit * 5 | ||||
206 | width: height | ||||
207 | | ||||
204 | 208 | | |||
205 | sourceComponent: BusyIndicator { | 209 | sourceComponent: BusyIndicator { | ||
206 | anchors.fill: parent | 210 | anchors.centerIn: parent | ||
207 | 211 | | |||
208 | running: true | 212 | running: true | ||
209 | } | 213 | } | ||
210 | } | 214 | } | ||
211 | } | 215 | } | ||
212 | 216 | | |||
213 | LabelWithToolTip { | 217 | LabelWithToolTip { | ||
214 | id: mainLabel | 218 | id: mainLabel | ||
▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines |