MCPcopy Create free account
hub / github.com/Simsys/qhexedit2 / mousePressEvent

Method mousePressEvent

src/qhexedit.cpp:822–833  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

820}
821
822void QHexEdit::mousePressEvent(QMouseEvent * event)
823{
824 _blink = false;
825 viewport()->update();
826 qint64 cPos = cursorPosition(event->pos());
827 if (cPos >= 0)
828 {
829 if (event->button() != Qt::RightButton)
830 resetSelection(cPos);
831 setCursorPosition(cPos);
832 }
833}
834
835void QHexEdit::paintEvent(QPaintEvent *event)
836{

Callers

nothing calls this directly

Calls 1

posMethod · 0.80

Tested by

no test coverage detected