mirror of
https://github.com/283375/arcaea-offline-pyside-ui.git
synced 2025-11-07 13:02:17 +00:00
57 lines
1.0 KiB
QML
57 lines
1.0 KiB
QML
import QtQuick
|
|
import QtQuick.Controls
|
|
import QtQuick.Layouts
|
|
|
|
import "../Components"
|
|
|
|
ColumnLayout {
|
|
id: root
|
|
|
|
signal confirm
|
|
|
|
required property url directoryUrl
|
|
required property string filename
|
|
|
|
GridLayout {
|
|
columns: 2
|
|
|
|
Label {
|
|
text: "Directory"
|
|
}
|
|
|
|
DirectorySelector {
|
|
Layout.fillWidth: true
|
|
|
|
directoryUrl: root.directoryUrl
|
|
onDirectoryUrlChanged: {
|
|
root.directoryUrl = this.directoryUrl;
|
|
}
|
|
}
|
|
|
|
Label {
|
|
text: "Filename"
|
|
}
|
|
|
|
TextField {
|
|
Layout.fillWidth: true
|
|
|
|
text: root.filename
|
|
placeholderText: 'Please enter…'
|
|
onEditingFinished: {
|
|
root.filename = this.text;
|
|
}
|
|
onAccepted: {
|
|
confirmButton.click();
|
|
}
|
|
}
|
|
}
|
|
|
|
Button {
|
|
id: confirmButton
|
|
Layout.alignment: Qt.AlignRight
|
|
|
|
text: 'Confirm'
|
|
onClicked: root.confirm()
|
|
}
|
|
}
|