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);
|
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)
|
||||||
|
|
Loading…
Reference in New Issue