Mercurial > hg > svgui
comparison widgets/Panner.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 | cb51d061cc25 |
children |
comparison
equal
deleted
inserted
replaced
1477:0769eaacc6bf | 1478:d39db4673676 |
---|---|
160 Panner::paintEvent(QPaintEvent *) | 160 Panner::paintEvent(QPaintEvent *) |
161 { | 161 { |
162 QPainter paint(this); | 162 QPainter paint(this); |
163 paint.setRenderHint(QPainter::Antialiasing, false); | 163 paint.setRenderHint(QPainter::Antialiasing, false); |
164 | 164 |
165 QColor bg(palette().background().color()); | 165 QColor bg(palette().window().color()); |
166 bg.setAlpha(m_backgroundAlpha); | 166 bg.setAlpha(m_backgroundAlpha); |
167 | 167 |
168 int penWidth = WidgetScale::scalePixelSize(1); | 168 int penWidth = WidgetScale::scalePixelSize(1); |
169 if (penWidth < 1) penWidth = 1; | 169 if (penWidth < 1) penWidth = 1; |
170 paint.setPen(QPen(palette().dark().color(), penWidth)); | 170 paint.setPen(QPen(palette().dark().color(), penWidth)); |