Use QStyleOption::initFrom() instead of QStyleOption::init()

The later is deprecated and removed in Qt6
This commit is contained in:
Sergio Martins
2020-07-18 18:08:26 +01:00
parent ffe13f4bea
commit beaa45d16d

View File

@@ -98,7 +98,7 @@ public:
{
QPainter p(this);
QStyleOptionToolButton opt;
opt.init(this);
opt.initFrom(this);
if (isEnabled() && underMouse()) {
if (isDown()) {