Changeset View
Changeset View
Standalone View
Standalone View
qmlUiKirigami/Main.qml
Show First 20 Lines • Show All 181 Lines • ▼ Show 20 Line(s) | 180 | Koko.SortModel { | |||
---|---|---|---|---|---|
182 | sourceModel: Koko.ImageLocationModel { | 182 | sourceModel: Koko.ImageLocationModel { | ||
183 | group: Koko.Types.City | 183 | group: Koko.Types.City | ||
184 | } | 184 | } | ||
185 | } | 185 | } | ||
186 | 186 | | |||
187 | Koko.ImageListModel { | 187 | Koko.ImageListModel { | ||
188 | id: imageListModel | 188 | id: imageListModel | ||
189 | } | 189 | } | ||
190 | 190 | Component { | |||
191 | id: imageViewerComponent | ||||
191 | ImageViewer { | 192 | ImageViewer { | ||
192 | id: imageViewer | 193 | id: imageViewer | ||
193 | //go on top of the overlay drawer | | |||
194 | //HACK on the parent and z to go on top of the handle as well | | |||
195 | z: 1999999 | | |||
196 | parent: root.overlay.parent | | |||
197 | width: overlay.width | | |||
198 | height: overlay.height | | |||
199 | indexValue: currentImage.index | 194 | indexValue: currentImage.index | ||
200 | sourceModel: currentImage.model | 195 | sourceModel: currentImage.model | ||
201 | imageWidth: root.width | 196 | imageWidth: root.width | ||
202 | imageHeight: root.height | 197 | imageHeight: root.height | ||
203 | state: imagePathArgument == "" ? "closed" : "open" | | |||
204 | } | 198 | } | ||
205 | 199 | } | |||
200 | Component.onCompleted: { | ||||
201 | if (imagePathArgument != "") { | ||||
202 | pageStack.layers.push(imageViewerComponent); | ||||
203 | } | ||||
204 | } | ||||
206 | } | 205 | } |