Mercurial > hg > svgui
diff widgets/Thumbwheel.cpp @ 1478:d39db4673676 by-id
Fix a number of Qt deprecation warnings
author | Chris Cannam |
---|---|
date | Wed, 03 Jul 2019 08:55:02 +0100 |
parents | c8a6fd3f9dff |
children | bbc3f537564c |
line wrap: on
line diff
--- a/widgets/Thumbwheel.cpp Tue Jul 02 19:05:45 2019 +0100 +++ b/widgets/Thumbwheel.cpp Wed Jul 03 08:55:02 2019 +0100 @@ -466,7 +466,7 @@ QPainter paint(&m_cache); paint.setClipRect(m_cache.rect()); - paint.fillRect(subclip, palette().background().color()); + paint.fillRect(subclip, palette().window().color()); paint.setRenderHint(QPainter::Antialiasing, true); @@ -564,7 +564,7 @@ } paint.setPen(fc); - paint.setBrush(palette().background().color()); + paint.setBrush(palette().window().color()); if (m_orientation == Qt::Horizontal) { paint.drawRect(QRectF(x0, bw, x1 - x0, h - bw*2));