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:
David Schulz
2020-02-28 11:32:58 +01:00
parent c912ee6862
commit 4165d16053

View File

@@ -127,8 +127,8 @@ void HighlightScrollBarOverlay::paintEvent(QPaintEvent *paintEvent)
const int aboveValue = m_scrollBar->value();
const int belowValue = m_scrollBar->maximum() - m_scrollBar->value();
const int sizeDocAbove = aboveValue * int(m_highlightController->lineHeight());
const int sizeDocBelow = belowValue * int(m_highlightController->lineHeight());
const int sizeDocAbove = int(aboveValue * m_highlightController->lineHeight());
const int sizeDocBelow = int(belowValue * m_highlightController->lineHeight());
const int sizeDocVisible = int(m_highlightController->visibleRange());
const int scrollBarBackgroundHeight = aboveHandleRect.height() + belowHandleRect.height();