summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Holthuis <jholthuis@mixxx.org>2022-01-14 22:46:25 +0100
committerJan Holthuis <jholthuis@mixxx.org>2022-01-14 23:12:08 +0100
commite7edddb605b058a6a6cd16eee5b666add9ca925f (patch)
tree1dd96c54a7175a2b704a0568de5f67e677d4f18b
parentf1c721757085d9b81b92a6d61d7f5528ecca840d (diff)
LaunchImage: Use proper QStyleOption::initFrom() method
-rw-r--r--src/skin/legacy/launchimage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/skin/legacy/launchimage.cpp b/src/skin/legacy/launchimage.cpp
index 6f5b2cdbb1..5e09b8d90c 100644
--- a/src/skin/legacy/launchimage.cpp
+++ b/src/skin/legacy/launchimage.cpp
@@ -64,7 +64,7 @@ void LaunchImage::progress(int value, const QString& serviceName) {
void LaunchImage::paintEvent(QPaintEvent *)
{
QStyleOption opt;
- opt.init(this);
+ opt.initFrom(this);
QPainter p(this);
style()->drawPrimitive(QStyle::PE_Widget, &opt, &p, this);
}