Do not use deprecated init() method

7220-lua-add-a-general-purpose-lexical-parser
Andrei Kortunov 2 years ago
parent 0864d997d0
commit 0de635dcdc

@ -46,7 +46,7 @@ void CSVWidget::ColorPickerPopup::mousePressEvent(QMouseEvent* event)
if (button != nullptr)
{
QStyleOptionButton option;
option.init(button);
option.initFrom(button);
QRect buttonRect = option.rect;
buttonRect.moveTo(button->mapToGlobal(buttonRect.topLeft()));

Loading…
Cancel
Save