MauiKit Controls

ShareDialog.qml
1import QtQuick 2.14
2
3import org.mauikit.controls 1.2 as Maui
4
5import "."
6
7/**
8 * @since org.mauikit.controls 1.0
9 * @brief A dialog listing the available services for sharing the given set of local files.
10*/
11Item
12{
13 id: control
14
15 /**
16 *
17 */
18 property var urls : []
19
20 /**
21 *
22 */
23 property string mimeType
24
25 Loader
26 {
27 id: _shareDialogLoader
28 // asynchronous: true
29 active: !Maui.Handy.isAndroid
30 source: "ShareDialogLinux.qml"
31 }
32
33 /**
34 *
35 */
36 function open()
37 {
38 if(Maui.Handy.isLinux)
39 {
40 console.log(control.urls)
41 _shareDialogLoader.item.urls = control.urls
42 // _shareDialogLoader.item.mimeType = control.mimeType
43 _shareDialogLoader.item.open()
44 return;
45 }
46 }
47
48 /**
49 *
50 */
51 function close()
52 {
53 if(Maui.Handy.isLinux)
54 _shareDialogLoader.item.close()
55 }
56}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:46:39 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.