Changeset View
Changeset View
Standalone View
Standalone View
src/qtquick/qml/EntryDetails.qml
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Line(s) | 70 | onEntryChanged: { | |||
---|---|---|---|---|---|
74 | || status == NewStuff.ItemsModel.UpdateableStatus | 74 | || status == NewStuff.ItemsModel.UpdateableStatus | ||
75 | || status == NewStuff.ItemsModel.DeletedStatus) { | 75 | || status == NewStuff.ItemsModel.DeletedStatus) { | ||
76 | statusCard.message = ""; | 76 | statusCard.message = ""; | ||
77 | } else if (status == NewStuff.ItemsModel.InstallingStatus) { | 77 | } else if (status == NewStuff.ItemsModel.InstallingStatus) { | ||
78 | statusCard.message = i18nc("Status message to be shown when the entry is in the process of being installed", "Currently installing the item %1 by %2. Please wait...", component.name, entryAuthor.name); | 78 | statusCard.message = i18nc("Status message to be shown when the entry is in the process of being installed", "Currently installing the item %1 by %2. Please wait...", component.name, entryAuthor.name); | ||
79 | } else if (status == NewStuff.ItemsModel.UpdatingStatus) { | 79 | } else if (status == NewStuff.ItemsModel.UpdatingStatus) { | ||
80 | statusCard.message = i18nc("Status message to be shown when the entry is in the process of being updated", "Currently updating the item %1 by %2. Please wait...", component.name, entryAuthor.name); | 80 | statusCard.message = i18nc("Status message to be shown when the entry is in the process of being updated", "Currently updating the item %1 by %2. Please wait...", component.name, entryAuthor.name); | ||
81 | } else { | 81 | } else { | ||
82 | statusCard.message = i18nc("Status message which should only be shown when the entry has been given some unknown or invalid status.", "This item is currently in an invalid or unknown state. Please report this to the KDE Community in a bug report."); | 82 | statusCard.message = i18nc("Status message which should only be shown when the entry has been given some unknown or invalid status.", "This item is currently in an invalid or unknown state. <a href=\"https://bugs.kde.org/enter_bug.cgi?product=frameworks-knewstuff\">Please report this to the KDE Community in a bug report</a>."); | ||
83 | } | 83 | } | ||
84 | } | 84 | } | ||
85 | } | 85 | } | ||
86 | 86 | | |||
87 | NewStuff.Author { | 87 | NewStuff.Author { | ||
88 | id: entryAuthor | 88 | id: entryAuthor | ||
89 | engine: component.newStuffModel.engine | 89 | engine: component.newStuffModel.engine | ||
90 | providerId: component.providerId | 90 | providerId: component.providerId | ||
▲ Show 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | 138 | Item { | |||
141 | implicitWidth: statusCard.width | 141 | implicitWidth: statusCard.width | ||
142 | QtControls.BusyIndicator { | 142 | QtControls.BusyIndicator { | ||
143 | id: statusBusy | 143 | id: statusBusy | ||
144 | anchors { | 144 | anchors { | ||
145 | top: parent.top | 145 | top: parent.top | ||
146 | left: parent.left | 146 | left: parent.left | ||
147 | } | 147 | } | ||
148 | running: statusCard.opacity > 0 | 148 | running: statusCard.opacity > 0 | ||
149 | Rectangle { anchors.fill: parent; color: "red"; opacity: 0.3; } | | |||
150 | } | 149 | } | ||
151 | QtControls.Label { | 150 | QtControls.Label { | ||
152 | id: statusLabel | 151 | id: statusLabel | ||
153 | anchors { | 152 | anchors { | ||
154 | top: parent.top | 153 | top: parent.top | ||
155 | left: statusBusy.right | 154 | left: statusBusy.right | ||
156 | leftMargin: Kirigami.Units.largeSpacing | 155 | leftMargin: Kirigami.Units.largeSpacing | ||
157 | right: parent.right | 156 | right: parent.right | ||
158 | } | 157 | } | ||
159 | text: statusCard.message | 158 | text: statusCard.message | ||
160 | wrapMode: Text.Wrap | 159 | wrapMode: Text.Wrap | ||
161 | Rectangle { anchors.fill: parent; color: "blue"; opacity: 0.3; } | 160 | onLinkActivated: Qt.openUrlExternally(link); | ||
162 | } | 161 | } | ||
163 | } | 162 | } | ||
164 | } | 163 | } | ||
165 | Private.EntryScreenshots { | 164 | Private.EntryScreenshots { | ||
166 | id: screenshotsItem | 165 | id: screenshotsItem | ||
167 | QtLayouts.Layout.fillWidth: true | 166 | QtLayouts.Layout.fillWidth: true | ||
168 | } | 167 | } | ||
169 | Kirigami.Heading { | 168 | Kirigami.Heading { | ||
▲ Show 20 Lines • Show All 46 Lines • Show Last 20 Lines |