MauiKit Controls

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

KDE's Doxygen guidelines are available online.