MCPcopy Create free account
hub / github.com/KDE/kdevelop / mousePressEvent

Function mousePressEvent

kdevplatform/debugger/variable/variabletooltip.cpp:47–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 }
46
47 void mousePressEvent(QMouseEvent* e) override
48 {
49 if (e->button() == Qt::LeftButton) {
50 m_pos = e->globalPosition().toPoint();
51 m_startSize = m_parent->size();
52 e->ignore();
53 }
54 }
55 void mouseReleaseEvent(QMouseEvent*) override
56 {
57 m_pos = QPoint();

Callers 1

mousePressEventMethod · 0.50

Calls 3

buttonMethod · 0.80
ignoreMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected