mirror of
https://github.com/OpenMW/openmw.git
synced 2025-06-24 23:11:34 +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)
|
if (button != nullptr)
|
||||||
{
|
{
|
||||||
QStyleOptionButton option;
|
QStyleOptionButton option;
|
||||||
option.init(button);
|
option.initFrom(button);
|
||||||
QRect buttonRect = option.rect;
|
QRect buttonRect = option.rect;
|
||||||
buttonRect.moveTo(button->mapToGlobal(buttonRect.topLeft()));
|
buttonRect.moveTo(button->mapToGlobal(buttonRect.topLeft()));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue