Changeset View
Changeset View
Standalone View
Standalone View
qmlUiKirigami/ImageViewer.qml
Show First 20 Lines • Show All 368 Lines • ▼ Show 20 Line(s) | 209 | delegate: Flickable { | |||
---|---|---|---|---|---|
369 | } | 369 | } | ||
370 | } | 370 | } | ||
371 | } | 371 | } | ||
372 | 372 | | |||
373 | ShareDialog { | 373 | ShareDialog { | ||
374 | id: shareDialog | 374 | id: shareDialog | ||
375 | x: (root.width - width) / 2 | 375 | x: (root.width - width) / 2 | ||
376 | y: root.height - height - Kirigami.Units.gridUnit * 3 | 376 | y: root.height - height - Kirigami.Units.gridUnit * 3 | ||
377 | inputData: { urls: [] } | 377 | inputData: { | ||
378 | "urls": [], | ||||
379 | "mimeType": ["image/"] | ||||
380 | } | ||||
378 | onFinished: { | 381 | onFinished: { | ||
379 | if (error==0 && output.url !== "") { | 382 | if (error==0 && output.url !== "") { | ||
380 | console.assert(output.url !== undefined); | 383 | console.assert(output.url !== undefined); | ||
381 | var resultUrl = output.url; | 384 | var resultUrl = output.url; | ||
382 | console.log("Received", resultUrl) | 385 | console.log("Received", resultUrl) | ||
383 | notificationManager.showNotification( true, resultUrl); | 386 | notificationManager.showNotification( true, resultUrl); | ||
384 | clipboard.content = resultUrl; | 387 | clipboard.content = resultUrl; | ||
385 | } else { | 388 | } else { | ||
386 | notificationManager.showNotification( false); | 389 | notificationManager.showNotification( false); | ||
387 | } | 390 | } | ||
388 | } | 391 | } | ||
389 | } | 392 | } | ||
390 | } | 393 | } |