mirror of
https://github.com/RustyRaptor/Pixelpulse2.git
synced 2026-12-03 23:45:15 -07:00
21 lines
367 B
QML
21 lines
367 B
QML
import QtQuick 2.2
|
|
import QtQuick.Dialogs 1.0
|
|
|
|
Item {
|
|
id: dialogItem
|
|
|
|
FileDialog {
|
|
id: fileDialog
|
|
property alias visible: toolbar.dialogVisible
|
|
|
|
title: "Please choose a file"
|
|
onAccepted: {
|
|
fileio.write(fileDialog.fileUrls, "Ask Ubuntu");
|
|
}
|
|
onRejected: {
|
|
console.log("Canceled")
|
|
}
|
|
Component.onCompleted: visible = true
|
|
}
|
|
}
|