Changeset View
Changeset View
Standalone View
Standalone View
discover/qml/DiscoverWindow.qml
Context not available. | |||||
145 | Kirigami.Page { | 145 | Kirigami.Page { | ||
---|---|---|---|---|---|
146 | id: page | 146 | id: page | ||
147 | property string error: "" | 147 | property string error: "" | ||
148 | readonly property bool isHome: true | ||||
149 | function searchFor(text) { | ||||
150 | if (text.length === 0) | ||||
151 | return; | ||||
152 | Navigation.openCategory(null, "") | ||||
153 | } | ||||
154 | Kirigami.Icon { | ||||
155 | id: infoIcon; | ||||
156 | anchors { | ||||
157 | bottom: parent.verticalCenter | ||||
158 | margins: Kirigami.Units.largeSpacing | ||||
159 | horizontalCenter: parent.horizontalCenter | ||||
160 | } | ||||
161 | visible: page.page.error !== "" | ||||
162 | source: "emblem-warning" | ||||
163 | height: Kirigami.Units.iconSizes.enormous | ||||
164 | width: height; | ||||
165 | } | ||||
148 | Kirigami.Heading { | 166 | Kirigami.Heading { | ||
149 | text: page.error | 167 | anchors { | ||
150 | anchors.fill: parent | 168 | top: parent.verticalCenter | ||
169 | margins: Kirigami.Units.largeSpacing | ||||
170 | horizontalCenter: parent.horizontalCenter | ||||
171 | } | ||||
172 | width: parent.width; | ||||
151 | horizontalAlignment: Text.AlignHCenter | 173 | horizontalAlignment: Text.AlignHCenter | ||
152 | verticalAlignment: Text.AlignVCenter | 174 | visible: page.error !== "" | ||
175 | text: page.error | ||||
153 | } | 176 | } | ||
154 | } | 177 | } | ||
155 | } | 178 | } | ||
Context not available. |