| 1907 | } |
| 1908 | |
| 1909 | void 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 | |
| 1930 | void MergeResultWindow::wheelEvent(QWheelEvent* pWheelEvent) |
| 1931 | { |