Changeset View
Changeset View
Standalone View
Standalone View
discover/qml/ProgressView.qml
Show All 33 Lines | 8 | Kirigami.AbstractListItem { | |||
---|---|---|---|---|---|
34 | onVisibleChanged: if (!visible && sheetObject) { | 34 | onVisibleChanged: if (!visible && sheetObject) { | ||
35 | sheetObject.close() | 35 | sheetObject.close() | ||
36 | sheetObject.destroy(100) | 36 | sheetObject.destroy(100) | ||
37 | } | 37 | } | ||
38 | 38 | | |||
39 | readonly property var v3: Component { | 39 | readonly property var v3: Component { | ||
40 | id: sheet | 40 | id: sheet | ||
41 | Kirigami.OverlaySheet { | 41 | Kirigami.OverlaySheet { | ||
42 | 42 | parent: applicationWindow().overlay | |||
43 | header: Kirigami.Heading { | ||||
44 | text: i18n("Tasks") | ||||
45 | } | ||||
43 | contentItem: ListView { | 46 | contentItem: ListView { | ||
47 | id: tasksView | ||||
44 | spacing: 0 | 48 | spacing: 0 | ||
49 | implicitWidth: Kirigami.Units.gridUnit * 30 | ||||
45 | 50 | | |||
46 | Component { | 51 | Component { | ||
47 | id: listenerComp | 52 | id: listenerComp | ||
48 | TransactionListener {} | 53 | TransactionListener {} | ||
49 | } | 54 | } | ||
50 | model: TransactionModel | 55 | model: TransactionModel | ||
51 | 56 | | |||
52 | delegate: Kirigami.AbstractListItem { | 57 | delegate: Kirigami.AbstractListItem { | ||
53 | id: del | 58 | id: del | ||
54 | separatorVisible: false | 59 | separatorVisible: false | ||
55 | hoverEnabled: model.application | 60 | hoverEnabled: model.application | ||
ngraham: Needed? | |||||
56 | onClicked: { | 61 | onClicked: { | ||
57 | if (model.application) { | 62 | if (model.application) { | ||
58 | Navigation.clearStack() | 63 | Navigation.clearStack() | ||
59 | Navigation.openApplication(model.application) | 64 | Navigation.openApplication(model.application) | ||
60 | } | 65 | } | ||
61 | } | 66 | } | ||
62 | readonly property QtObject listener: listenerComp.createObject(del, (model.transaction.resource ? {resource: model.transaction.resource} : {transaction: model.transaction})) | 67 | readonly property QtObject listener: listenerComp.createObject(del, (model.transaction.resource ? {resource: model.transaction.resource} : {transaction: model.transaction})) | ||
63 | 68 | | |||
64 | ColumnLayout { | 69 | contentItem: ColumnLayout { | ||
65 | width: parent.width | | |||
66 | 70 | | |||
67 | RowLayout { | 71 | RowLayout { | ||
68 | Layout.fillWidth: true | 72 | Layout.fillWidth: true | ||
69 | 73 | | |||
70 | Kirigami.Icon { | 74 | Kirigami.Icon { | ||
71 | Layout.fillHeight: true | 75 | Layout.fillHeight: true | ||
72 | Layout.minimumWidth: height | 76 | Layout.minimumWidth: height | ||
73 | source: model.transaction.icon | 77 | source: model.transaction.icon | ||
Show All 35 Lines |
Needed?