diff --git a/qml/panels/EditorPanel.qml b/qml/panels/EditorPanel.qml index 92f98c8..c6c5cde 100644 --- a/qml/panels/EditorPanel.qml +++ b/qml/panels/EditorPanel.qml @@ -163,4 +163,21 @@ Item { const n = documentManager.openTabs.length 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 } + } } \ No newline at end of file