diff --git a/src/private/widgets/TitleBarWidget_p.h b/src/private/widgets/TitleBarWidget_p.h index 4ba05e81..64b152b7 100644 --- a/src/private/widgets/TitleBarWidget_p.h +++ b/src/private/widgets/TitleBarWidget_p.h @@ -98,7 +98,7 @@ public: { QPainter p(this); QStyleOptionToolButton opt; - opt.init(this); + opt.initFrom(this); if (isEnabled() && underMouse()) { if (isDown()) {