── Test: cursor is PointingHand over type column text ──
| 924 | |
| 925 | // ── Test: cursor is PointingHand over type column text ── |
| 926 | void testCursorShapeOverType() { |
| 927 | m_editor->applyDocument(m_result); |
| 928 | |
| 929 | const LineMeta* lm = m_editor->metaForLine(kFirstDataLine); |
| 930 | QVERIFY(lm); |
| 931 | |
| 932 | // Type span starts after the fold column + indent |
| 933 | ColumnSpan ts = RcxEditor::typeSpan(*lm, lm->effectiveTypeW); |
| 934 | QVERIFY(ts.valid); |
| 935 | |
| 936 | // Move to start of type text (e.g. "uint8_t") |
| 937 | QPoint typePos = colToViewport(m_editor->scintilla(), kFirstDataLine, ts.start + 1); |
| 938 | sendMouseMove(m_editor->scintilla()->viewport(), typePos); |
| 939 | QApplication::processEvents(); |
| 940 | QCOMPARE(viewportCursor(m_editor), Qt::PointingHandCursor); |
| 941 | } |
| 942 | |
| 943 | // ── Test: cursor is PointingHand over fold column ── |
| 944 | void testCursorShapeInFoldColumn() { |
nothing calls this directly
no test coverage detected