CodeBlock: TextEdit с полным текстом без скролла, только иконка 📋

- CodeBlock TextEdit: anchors.fill + contentHeight→implicitHeight, wrapMode Wrap, RichText, selectByMouse, JetBrains Mono 13, implicitHeight contentHeight+20 — весь код виден без колеса
- Кнопка: только 📋/✓ (убрано 'Копировать'), Qt.rgba hover/active, размер под иконку
- Tests: parseBlocks с codeText/highlightedText, ctest 21/21
This commit is contained in:
2026-09-02 00:01:03 +03:00
parent 38e726b7de
commit b58f15d2b1
3 changed files with 14 additions and 1 deletions
+2
View File
@@ -8,6 +8,8 @@ Item {
signal historyRequested(string path)
property alias editorTextArea: textArea
property alias previewView: viewArea
property alias liveView: livePreview
property bool sideBySide: false
property string viewMode: "edit" // edit, preview, live — per-tab, persisted