From 2a5debfca39149f04901fba6cfda3af0eae970ff Mon Sep 17 00:00:00 2001 From: "Flora (opencode)" Date: Mon, 17 Aug 2026 19:33:17 +0300 Subject: [PATCH] =?UTF-8?q?Debug:=20=D0=BA=D1=80=D0=B0=D1=81=D0=BD=D1=8B?= =?UTF-8?q?=D0=B9=20=D1=84=D0=BE=D0=BD=20=D0=B7=D0=B0=20TextEdit=20=D0=B4?= =?UTF-8?q?=D0=BB=D1=8F=20=D0=B2=D0=B8=D0=B7=D1=83=D0=B0=D0=BB=D1=8C=D0=BD?= =?UTF-8?q?=D0=BE=D0=B9=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=B8?= =?UTF-8?q?=20=D1=80=D0=B0=D0=B7=D0=BC=D0=B5=D1=80=D0=BE=D0=B2=20Flickable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qml/panels/EditorPane.qml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/qml/panels/EditorPane.qml b/qml/panels/EditorPane.qml index 68af906..ac0b85a 100644 --- a/qml/panels/EditorPane.qml +++ b/qml/panels/EditorPane.qml @@ -60,7 +60,7 @@ Item { } } - // Текст файла — Text вместо TextArea (гарантированный рендеринг) + // Текст файла — TextEdit внутри Flickable Flickable { id: flickable anchors.top: parent.top @@ -72,6 +72,13 @@ Item { clip: true flickableDirection: Flickable.VerticalFlick + // ВРЕМЕННЫЙ красный фон для отладки размеров + Rectangle { + anchors.fill: parent + color: "red" + z: -1 + } + TextEdit { id: textDisplay width: flickable.width @@ -84,15 +91,6 @@ Item { wrapMode: TextEdit.NoWrap readOnly: true selectByMouse: true - MouseArea { - anchors.fill: parent - onWheel: (w) => { - if (w.angleDelta.y > 0) - flickable.contentY = Math.max(0, flickable.contentY - 30) - else - flickable.contentY = Math.min(flickable.contentHeight - flickable.height, flickable.contentY + 30) - } - } } }