Фикс: ProviderSetupGuide модальный-в-модальном (non-modal + z:100), index required property в delegate'ах FileTreePanel/EditorPanel, добавлена диагностика openProviderGuide, vault=/Users/alex/Nextcloud/test
This commit is contained in:
@@ -16,11 +16,12 @@ Dialog {
|
|||||||
readonly property bool isGit: providerIndex <= 2
|
readonly property bool isGit: providerIndex <= 2
|
||||||
|
|
||||||
title: qsTr("Подключение: %1").arg(providerName)
|
title: qsTr("Подключение: %1").arg(providerName)
|
||||||
modal: true
|
z: 100
|
||||||
|
modal: false
|
||||||
width: 640
|
width: 640
|
||||||
height: 520
|
height: 520
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
closePolicy: Dialog.NoAutoClose
|
closePolicy: Dialog.CloseOnEscape | Dialog.CloseOnPressOutside
|
||||||
|
|
||||||
function defaultUrl() {
|
function defaultUrl() {
|
||||||
switch (root.providerIndex) {
|
switch (root.providerIndex) {
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ Item {
|
|||||||
Rectangle {
|
Rectangle {
|
||||||
id: tab
|
id: tab
|
||||||
required property string modelData
|
required property string modelData
|
||||||
|
required property int index
|
||||||
readonly property bool active: index === documentManager.activeIndex
|
readonly property bool active: index === documentManager.activeIndex
|
||||||
width: Math.max(96, Math.min(200, tabLabel.implicitWidth + 44))
|
width: Math.max(96, Math.min(200, tabLabel.implicitWidth + 44))
|
||||||
height: 26
|
height: 26
|
||||||
|
|||||||
@@ -97,6 +97,7 @@ Item {
|
|||||||
required property bool expanded
|
required property bool expanded
|
||||||
required property bool hasChildren
|
required property bool hasChildren
|
||||||
required property string icon
|
required property string icon
|
||||||
|
required property int index
|
||||||
|
|
||||||
width: treeView.width
|
width: treeView.width
|
||||||
height: 30
|
height: 30
|
||||||
|
|||||||
@@ -124,10 +124,12 @@ Dialog {
|
|||||||
Button { text: "Syncthing"; Layout.fillWidth: true; onClicked: openProviderGuide(4, "Syncthing") }
|
Button { text: "Syncthing"; Layout.fillWidth: true; onClicked: openProviderGuide(4, "Syncthing") }
|
||||||
|
|
||||||
function openProviderGuide(idx, name) {
|
function openProviderGuide(idx, name) {
|
||||||
|
console.log("openProviderGuide:", idx, name)
|
||||||
providerGuideForButtons.providerIndex = idx
|
providerGuideForButtons.providerIndex = idx
|
||||||
providerGuideForButtons.providerName = name
|
providerGuideForButtons.providerName = name
|
||||||
providerGuideForButtons.connected = false
|
providerGuideForButtons.connected = false
|
||||||
providerGuideForButtons.open()
|
providerGuideForButtons.open()
|
||||||
|
console.log("guide opened:", providerGuideForButtons.visible, providerGuideForButtons.width, providerGuideForButtons.height)
|
||||||
}
|
}
|
||||||
Label {
|
Label {
|
||||||
color: "#888"
|
color: "#888"
|
||||||
|
|||||||
Reference in New Issue
Block a user