|
|
|
@ -3,6 +3,8 @@ import QtQuick
|
|
|
|
|
import QtQuick.Controls
|
|
|
|
|
import QtQuick.Controls.Basic
|
|
|
|
|
import QtQuick.Layouts
|
|
|
|
|
import QtQuick.Dialogs
|
|
|
|
|
import Qt.labs.folderlistmodel
|
|
|
|
|
import mysettings
|
|
|
|
|
|
|
|
|
|
Item {
|
|
|
|
@ -91,6 +93,17 @@ Item {
|
|
|
|
|
border.color: theme.tabBorder
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
FolderDialog {
|
|
|
|
|
id: folderDialog
|
|
|
|
|
title: qsTr("Please choose a directory")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function openFolderDialog(currentFolder, onAccepted) {
|
|
|
|
|
folderDialog.currentFolder = currentFolder;
|
|
|
|
|
folderDialog.accepted.connect(function() { onAccepted(folderDialog.currentFolder); });
|
|
|
|
|
folderDialog.open();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
StackLayout {
|
|
|
|
|
id: stackLayout
|
|
|
|
|
anchors.top: tabTitlesModel.count > 1 ? dividerTabBar.bottom : titleLabel.bottom
|
|
|
|
@ -106,6 +119,7 @@ Item {
|
|
|
|
|
sourceComponent: model.modelData
|
|
|
|
|
onLoaded: {
|
|
|
|
|
settingsStack.tabTitlesModel.append({ "title": loader.item.title });
|
|
|
|
|
item.openFolderDialog = settingsStack.openFolderDialog;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|