Merge pull request #14004 from wwmayer/prop_item
Gui: move to new-style connect() in createEditor()
This commit is contained in:
@@ -129,11 +129,9 @@ void PropertyFemMeshItem::setValue(const QVariant& value)
|
||||
}
|
||||
|
||||
QWidget* PropertyFemMeshItem::createEditor(QWidget* parent,
|
||||
const QObject* receiver,
|
||||
const char* method) const
|
||||
const std::function<void()>& method) const
|
||||
{
|
||||
Q_UNUSED(parent);
|
||||
Q_UNUSED(receiver);
|
||||
Q_UNUSED(method);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
@@ -44,8 +44,7 @@ class PropertyFemMeshItem: public Gui::PropertyEditor::PropertyItem
|
||||
Q_PROPERTY(int Groups READ countGroups CONSTANT)
|
||||
PROPERTYITEM_HEADER
|
||||
|
||||
QWidget*
|
||||
createEditor(QWidget* parent, const QObject* receiver, const char* method) const override;
|
||||
QWidget* createEditor(QWidget* parent, const std::function<void()>& method) const override;
|
||||
void setEditorData(QWidget* editor, const QVariant& data) const override;
|
||||
QVariant editorData(QWidget* editor) const override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user