mirror of
https://github.com/clementine-player/Clementine
synced 2025-02-03 04:37:33 +01:00
Merge pull request #6506 from jonaski/styleoptionframe
Replace use of QStyleOptionFrameV3
This commit is contained in:
commit
a875c3b91f
@ -18,7 +18,7 @@
|
|||||||
#include "ratingwidget.h"
|
#include "ratingwidget.h"
|
||||||
|
|
||||||
#include <QMouseEvent>
|
#include <QMouseEvent>
|
||||||
#include <QStyleOptionFrameV3>
|
#include <QStyleOptionFrame>
|
||||||
#include <QStylePainter>
|
#include <QStylePainter>
|
||||||
#include <QtDebug>
|
#include <QtDebug>
|
||||||
|
|
||||||
@ -120,7 +120,7 @@ void RatingWidget::paintEvent(QPaintEvent* e) {
|
|||||||
QStylePainter p(this);
|
QStylePainter p(this);
|
||||||
|
|
||||||
// Draw the background
|
// Draw the background
|
||||||
QStyleOptionFrameV3 opt;
|
QStyleOptionFrame opt;
|
||||||
opt.initFrom(this);
|
opt.initFrom(this);
|
||||||
opt.state |= QStyle::State_Sunken;
|
opt.state |= QStyle::State_Sunken;
|
||||||
opt.frameShape = QFrame::StyledPanel;
|
opt.frameShape = QFrame::StyledPanel;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user