WColorPicker: Make use of Qt 5 signals and slots
@@ -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)
