forked from qt-creator/qt-creator
Core: Fix rounding issue in highlight scrollbar
Fixes: QTCREATORBUG-23660 Change-Id: Ifcaf4e705a0a037c58ffedf36605b3eecfc698de Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -127,8 +127,8 @@ void HighlightScrollBarOverlay::paintEvent(QPaintEvent *paintEvent)
|
|||||||
|
|
||||||
const int aboveValue = m_scrollBar->value();
|
const int aboveValue = m_scrollBar->value();
|
||||||
const int belowValue = m_scrollBar->maximum() - m_scrollBar->value();
|
const int belowValue = m_scrollBar->maximum() - m_scrollBar->value();
|
||||||
const int sizeDocAbove = aboveValue * int(m_highlightController->lineHeight());
|
const int sizeDocAbove = int(aboveValue * m_highlightController->lineHeight());
|
||||||
const int sizeDocBelow = belowValue * int(m_highlightController->lineHeight());
|
const int sizeDocBelow = int(belowValue * m_highlightController->lineHeight());
|
||||||
const int sizeDocVisible = int(m_highlightController->visibleRange());
|
const int sizeDocVisible = int(m_highlightController->visibleRange());
|
||||||
|
|
||||||
const int scrollBarBackgroundHeight = aboveHandleRect.height() + belowHandleRect.height();
|
const int scrollBarBackgroundHeight = aboveHandleRect.height() + belowHandleRect.height();
|
||||||
|
Reference in New Issue
Block a user