WColorPicker: Make use of Qt 5 signals and slots

This commit is contained in:
Lioncash 2020-07-03 07:33:22 -04:00
parent d05d767d66
commit 9d8243d80b
1 changed files with 2 additions and 2 deletions

View File

@ -66,8 +66,8 @@ void WColorPicker::mouseReleaseEvent(QMouseEvent *pEvent)
QColorDialog ColorPick(this); QColorDialog ColorPick(this);
ColorPick.setOptions(QColorDialog::ShowAlphaChannel); ColorPick.setOptions(QColorDialog::ShowAlphaChannel);
ColorPick.setCurrentColor(mColor); ColorPick.setCurrentColor(mColor);
connect(&ColorPick, SIGNAL(currentColorChanged(QColor)), this, SLOT(DialogColorChanged(QColor))); connect(&ColorPick, &QColorDialog::currentColorChanged, this, &WColorPicker::DialogColorChanged);
connect(&ColorPick, SIGNAL(rejected()), this, SLOT(DialogRejected())); connect(&ColorPick, &QColorDialog::rejected, this, &WColorPicker::DialogRejected);
int Result = ColorPick.exec(); int Result = ColorPick.exec();
if (Result) if (Result)