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

Function colToViewport

tests/test_editor.cpp:28–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26}
27
28static QPoint colToViewport(QsciScintilla* sci, int line, int col) {
29 long pos = sci->SendScintilla(QsciScintillaBase::SCI_FINDCOLUMN,
30 (unsigned long)line, (long)col);
31 int x = (int)sci->SendScintilla(QsciScintillaBase::SCI_POINTXFROMPOSITION, 0, pos);
32 int y = (int)sci->SendScintilla(QsciScintillaBase::SCI_POINTYFROMPOSITION, 0, pos);
33 return QPoint(x, y);
34}
35
36static void sendMouseMove(QWidget* viewport, const QPoint& pos) {
37 QMouseEvent move(QEvent::MouseMove, QPointF(pos), QPointF(pos),

Calls

no outgoing calls

Tested by

no test coverage detected