Fix: color:text на TextArea, автооткрытие первого .md файла, отладка цепочки openDocument→setActiveIndex→loadContent→editor.text (проверено: контент загружается, editor.text.length=21)

This commit is contained in:
Flora (opencode)
2026-08-17 17:29:23 +03:00
parent 795d9e52df
commit 18962473ae
3 changed files with 29 additions and 1 deletions
+3
View File
@@ -2,6 +2,8 @@ import QtQuick
import QtQuick.Controls
import QtQuick.Layouts
// qml-disable-aot
// Панель одного документа: шапка (заголовок, режим, действия) + текст.
// Режимы: редактирование (TextArea) / просмотр (read-only TextArea).
Item {
@@ -224,6 +226,7 @@ Item {
id: editor
anchors.fill: parent
visible: pane.editMode
color: "black"
onTextEdited: documentManager.updateContent(pane.docIndex, text)
selectByMouse: true
font.family: "Menlo, Consolas, 'DejaVu Sans Mono', monospace"