Purpose

saveasplugin_config.qml
1/*
2 SPDX-FileCopyrightText: 2014 Aleix Pol Gonzalez <aleixpol@blue-systems.com>
3
4 SPDX-License-Identifier: LGPL-2.1-or-later
5*/
6
7import QtQuick
8import QtQuick.Layouts
9import QtQuick.Controls
10import QtQuick.Dialogs
11
12ColumnLayout {
13 id: root
14
15 property alias destinationPath: destination.text
16 property var urls
17
18 Label {
19 text: i18n("Save directory:")
20 }
21 Button {
22 id: destination
23 Layout.fillWidth: true
24
25 icon.name: "document-open-folder"
26 onClicked: {
27 dirSelector.visible = true
28 }
29
30 FolderDialog {
31 id: dirSelector
32 title: i18n("Select a directory where to save your pictures and videos")
33
34 onAccepted: {
35 destination.text = dirSelector.selectedFolder
36 }
37 }
38 }
39 Item {
40 Layout.fillHeight: true
41 }
42}
QString i18n(const char *text, const TYPE &arg...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:08:47 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.