Warning, /office/klevernotes/src/contents/ui/dialogs/FileSaverDialog.qml is written in an unsupported language. File is not indexed.
0001 // SPDX-License-Identifier: GPL-2.0-or-later
0002 // SPDX-FileCopyrightText: 2023 Louis Schul <schul9louis@gmail.com>
0003
0004 import QtQuick 2.15
0005 import Qt.labs.platform 1.1
0006
0007 import org.kde.kirigami 2.19 as Kirigami
0008
0009 FileDialog {
0010 id: fileDialog
0011
0012 property QtObject caller
0013 property string noteName
0014
0015 title: i18nc("@title:dialog, choose the location of where the file will be saved", "Save note")
0016
0017 folder: StandardPaths.writableLocation(StandardPaths.DocumentsLocation)
0018 currentFile: folder+"/"+noteName+".pdf"
0019 fileMode: FileDialog.SaveFile
0020
0021 onAccepted: {
0022 caller.path = fileDialog.currentFile
0023 }
0024 }