mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-02 19:26:03 +00:00
WColorPicker: Make use of Qt 5 signals and slots
This commit is contained in:
parent
d05d767d66
commit
9d8243d80b
@ -66,8 +66,8 @@ void WColorPicker::mouseReleaseEvent(QMouseEvent *pEvent)
|
||||
QColorDialog ColorPick(this);
|
||||
ColorPick.setOptions(QColorDialog::ShowAlphaChannel);
|
||||
ColorPick.setCurrentColor(mColor);
|
||||
connect(&ColorPick, SIGNAL(currentColorChanged(QColor)), this, SLOT(DialogColorChanged(QColor)));
|
||||
connect(&ColorPick, SIGNAL(rejected()), this, SLOT(DialogRejected()));
|
||||
connect(&ColorPick, &QColorDialog::currentColorChanged, this, &WColorPicker::DialogColorChanged);
|
||||
connect(&ColorPick, &QColorDialog::rejected, this, &WColorPicker::DialogRejected);
|
||||
int Result = ColorPick.exec();
|
||||
|
||||
if (Result)
|
||||
|
Loading…
x
Reference in New Issue
Block a user