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

Method mousePressEvent

src/Overview.cpp:90–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90void Overview::mousePressEvent(QMouseEvent* e)
91{
92 qint32 h = height() - 1;
93 qint32 h1 = h * m_pageHeight / std::max(1, m_nofLines) + 3;
94
95 if(h > 0)
96 Q_EMIT setLine(std::max(0, (e->pos().y() - h1 / 2)) * m_nofLines / h);
97}
98
99void Overview::mouseMoveEvent(QMouseEvent* e)
100{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected