QStyleOption::init() -> QStyleOption::initFrom()

Reference:
- https://doc.qt.io/qt-5/qstyleoption-obsolete.html#init
This commit is contained in:
zneix 2021-07-31 22:41:15 +02:00
parent 0839e36177
commit bddd5b021c
No known key found for this signature in database
GPG key ID: 911916E0523B22F6

View file

@ -53,7 +53,7 @@ void SettingsDialogTab::paintEvent(QPaintEvent *)
QPainter painter(this);
QStyleOption opt;
opt.init(this);
opt.initFrom(this);
this->style()->drawPrimitive(QStyle::PE_Widget, &opt, &painter, this);