diff --git a/src/Editor/Widgets/WColorPicker.cpp b/src/Editor/Widgets/WColorPicker.cpp index 42eda4b7..5f657f2c 100644 --- a/src/Editor/Widgets/WColorPicker.cpp +++ b/src/Editor/Widgets/WColorPicker.cpp @@ -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)