── Test: cursor stays Arrow after left-click on a node ──
| 883 | |
| 884 | // ── Test: cursor stays Arrow after left-click on a node ── |
| 885 | void testCursorAfterLeftClick() { |
| 886 | m_editor->applyDocument(m_result); |
| 887 | |
| 888 | // Click on a field line at the indent area (col 0 — not over editable text) |
| 889 | QPoint clickPos = colToViewport(m_editor->scintilla(), kFirstDataLine, 0); |
| 890 | sendLeftClick(m_editor->scintilla()->viewport(), clickPos); |
| 891 | QApplication::processEvents(); |
| 892 | |
| 893 | // Cursor must be Arrow — QScintilla must NOT have set it to IBeam |
| 894 | QCOMPARE(viewportCursor(m_editor), Qt::ArrowCursor); |
| 895 | QVERIFY(!m_editor->isEditing()); |
| 896 | } |
| 897 | |
| 898 | // ── Test: cursor is IBeam only over trimmed name text, Arrow over padding ── |
| 899 | void testCursorShapeOverText() { |
nothing calls this directly
no test coverage detected