Remove use of C-style casts
This commit is contained in:
committed by
Jonas Kvinge
parent
637772f8f0
commit
b38ad81928
@@ -328,7 +328,7 @@ void VolumeSlider::paintEvent(QPaintEvent*) {
|
||||
QPainter p(this);
|
||||
|
||||
const int padding = 7;
|
||||
const int offset = int(double((width() - 2 * padding) * value()) / maximum());
|
||||
const int offset = static_cast<int>(static_cast<double>((width() - 2 * padding) * value()) / maximum());
|
||||
|
||||
// If theme changed since last paintEvent, redraw the volume pixmap with new theme colors
|
||||
if (previous_theme_text_color_ != palette().color(QPalette::WindowText)) {
|
||||
|
||||
Reference in New Issue
Block a user