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

Method slotCursorUpdate

src/mergeresultwindow.cpp:1909–1928  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1907}
1908
1909void MergeResultWindow::slotCursorUpdate()
1910{
1911 m_cursorTimer.stop();
1912 m_bCursorOn = !m_bCursorOn;
1913
1914 if(isVisible())
1915 {
1916 m_bCursorUpdate = true;
1917
1918 const QFontMetrics& fm = fontMetrics();
1919 constexpr qint32 topLineYOffset = 0;
1920 qint32 yOffset = (m_cursorYPos - m_firstLine) * fm.lineSpacing() + topLineYOffset;
1921
1922 repaint(0, yOffset, width(), fm.lineSpacing() + 2);
1923
1924 m_bCursorUpdate = false;
1925 }
1926
1927 m_cursorTimer.start(500);
1928}
1929
1930void MergeResultWindow::wheelEvent(QWheelEvent* pWheelEvent)
1931{

Callers

nothing calls this directly

Calls 1

startMethod · 0.80

Tested by

no test coverage detected