mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-01 01:39:41 +00:00
Do not use deprecated init() method
This commit is contained in:
parent
0864d997d0
commit
0de635dcdc
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue