Debug: Text+z:1000+yellow прямо в EditorPanel — видимый поверх всего; проверка QML-рендеринга
This commit is contained in:
@@ -163,4 +163,21 @@ Item {
|
|||||||
const n = documentManager.openTabs.length
|
const n = documentManager.openTabs.length
|
||||||
if (n > 0) documentManager.setActiveIndex((documentManager.activeIndex + 1) % n)
|
if (n > 0) documentManager.setActiveIndex((documentManager.activeIndex + 1) % n)
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
// ОТЛАДКА: видимый текст прямо в EditorPanel (z:1000)
|
||||||
|
Text {
|
||||||
|
z: 1000
|
||||||
|
anchors.top: editorArea.top
|
||||||
|
anchors.left: editorArea.left
|
||||||
|
anchors.right: editorArea.right
|
||||||
|
height: 200
|
||||||
|
text: documentManager.activeIndex >= 0
|
||||||
|
? "DEBUG CONTENT: " + documentManager.contentAt(documentManager.activeIndex).substring(0, 500)
|
||||||
|
: "NO FILE OPENED (activeIndex=" + documentManager.activeIndex + ")"
|
||||||
|
font.pixelSize: 16
|
||||||
|
color: "blue"
|
||||||
|
wrapMode: Text.Wrap
|
||||||
|
clip: true
|
||||||
|
Rectangle { anchors.fill: parent; color: "yellow"; z: -1 }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user