MCPcopy Create free account
hub / github.com/IChooseYou/Reclass / testCursorAfterLeftClick

Method testCursorAfterLeftClick

tests/test_editor.cpp:885–896  ·  view source on GitHub ↗

── Test: cursor stays Arrow after left-click on a node ──

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 6

colToViewportFunction · 0.85
sendLeftClickFunction · 0.85
viewportCursorFunction · 0.85
applyDocumentMethod · 0.80
scintillaMethod · 0.80
isEditingMethod · 0.80

Tested by

no test coverage detected