Changeset View
Changeset View
Standalone View
Standalone View
qmlUiKirigami/AlbumView.qml
Show First 20 Lines • Show All 144 Lines • ▼ Show 20 Line(s) | 143 | onImageSelected: { | |||
---|---|---|---|---|---|
145 | currentImage.index = currentIndex | 145 | currentImage.index = currentIndex | ||
146 | applicationWindow().pageStack.layers.push(imageViewerComponent); | 146 | applicationWindow().pageStack.layers.push(imageViewerComponent); | ||
147 | } | 147 | } | ||
148 | 148 | | |||
149 | ShareDialog { | 149 | ShareDialog { | ||
150 | id: shareMenu | 150 | id: shareMenu | ||
151 | x: ( page.width - width) / 2 | 151 | x: ( page.width - width) / 2 | ||
152 | y: page.height - height - ( Kirigami.Units.gridUnit * 3) | 152 | y: page.height - height - ( Kirigami.Units.gridUnit * 3) | ||
153 | inputData: { urls: [] } | 153 | inputData: { | ||
154 | "urls": [], | ||||
155 | "mimeType": ["image/"] | ||||
156 | } | ||||
154 | onFinished: { | 157 | onFinished: { | ||
155 | if (error==0 && output.url !== "") { | 158 | if (error==0 && output.url !== "") { | ||
156 | console.assert(output.url !== undefined); | 159 | console.assert(output.url !== undefined); | ||
157 | var resultUrl = output.url; | 160 | var resultUrl = output.url; | ||
158 | console.log("Received", resultUrl) | 161 | console.log("Received", resultUrl) | ||
159 | notificationManager.showNotification( true, resultUrl); | 162 | notificationManager.showNotification( true, resultUrl); | ||
160 | clipboard.content = resultUrl; | 163 | clipboard.content = resultUrl; | ||
161 | } else { | 164 | } else { | ||
162 | notificationManager.showNotification( false); | 165 | notificationManager.showNotification( false); | ||
163 | } | 166 | } | ||
164 | } | 167 | } | ||
165 | } | 168 | } | ||
166 | } | 169 | } |