summaryrefslogtreecommitdiffstats
path: root/src/designer/src/components/propertyeditor/paletteeditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/designer/src/components/propertyeditor/paletteeditor.cpp')
-rw-r--r--src/designer/src/components/propertyeditor/paletteeditor.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/designer/src/components/propertyeditor/paletteeditor.cpp b/src/designer/src/components/propertyeditor/paletteeditor.cpp
index 89a3a4a19..4bb1bf450 100644
--- a/src/designer/src/components/propertyeditor/paletteeditor.cpp
+++ b/src/designer/src/components/propertyeditor/paletteeditor.cpp
@@ -500,10 +500,8 @@ QWidget *ColorDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem
//editor->installEventFilter(const_cast<ColorDelegate *>(this));
ed = editor;
} else {
- typedef void (BrushEditor::*BrushEditorWidgetSignal)(QWidget *);
-
BrushEditor *editor = new BrushEditor(m_core, parent);
- connect(editor, static_cast<BrushEditorWidgetSignal>(&BrushEditor::changed),
+ connect(editor, QOverload<QWidget *>::of(&BrushEditor::changed),
this, &ColorDelegate::commitData);
editor->setFocusPolicy(Qt::NoFocus);
editor->installEventFilter(const_cast<ColorDelegate *>(this));