|
|
@ -3,6 +3,8 @@ import QtQuick
|
|
|
|
import QtQuick.Controls
|
|
|
|
import QtQuick.Controls
|
|
|
|
import QtQuick.Controls.Basic
|
|
|
|
import QtQuick.Controls.Basic
|
|
|
|
import QtQuick.Layouts
|
|
|
|
import QtQuick.Layouts
|
|
|
|
|
|
|
|
import QtQuick.Dialogs
|
|
|
|
|
|
|
|
import Qt.labs.folderlistmodel
|
|
|
|
import mysettings
|
|
|
|
import mysettings
|
|
|
|
|
|
|
|
|
|
|
|
Item {
|
|
|
|
Item {
|
|
|
@ -91,6 +93,17 @@ Item {
|
|
|
|
border.color: theme.tabBorder
|
|
|
|
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 {
|
|
|
|
StackLayout {
|
|
|
|
id: stackLayout
|
|
|
|
id: stackLayout
|
|
|
|
anchors.top: tabTitlesModel.count > 1 ? dividerTabBar.bottom : titleLabel.bottom
|
|
|
|
anchors.top: tabTitlesModel.count > 1 ? dividerTabBar.bottom : titleLabel.bottom
|
|
|
@ -106,6 +119,7 @@ Item {
|
|
|
|
sourceComponent: model.modelData
|
|
|
|
sourceComponent: model.modelData
|
|
|
|
onLoaded: {
|
|
|
|
onLoaded: {
|
|
|
|
settingsStack.tabTitlesModel.append({ "title": loader.item.title });
|
|
|
|
settingsStack.tabTitlesModel.append({ "title": loader.item.title });
|
|
|
|
|
|
|
|
item.openFolderDialog = settingsStack.openFolderDialog;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|