[Gui] modernize some connect() settings

- addresses #6166
This commit is contained in:
Uwe
2023-01-12 02:01:35 +01:00
committed by wwmayer
parent 0410dc8f4d
commit 5ad737ccdc
17 changed files with 73 additions and 87 deletions

View File

@@ -85,14 +85,18 @@ PropertyEditor::PropertyEditor(QWidget *parent)
this->setSelectionMode(QAbstractItemView::ExtendedSelection);
connect(this, SIGNAL(activated(const QModelIndex &)), this, SLOT(onItemActivated(const QModelIndex &)));
connect(this, SIGNAL(clicked(const QModelIndex &)), this, SLOT(onItemActivated(const QModelIndex &)));
connect(this, SIGNAL(expanded(const QModelIndex &)), this, SLOT(onItemExpanded(const QModelIndex &)));
connect(this, SIGNAL(collapsed(const QModelIndex &)), this, SLOT(onItemCollapsed(const QModelIndex &)));
connect(propertyModel, SIGNAL(rowsMoved(const QModelIndex &, int, int, const QModelIndex &, int)),
this, SLOT(onRowsMoved(const QModelIndex &, int, int, const QModelIndex &, int)));
connect(propertyModel, SIGNAL(rowsRemoved(const QModelIndex &, int, int)),
this, SLOT(onRowsRemoved(const QModelIndex &, int, int)));
connect(this, &Gui::PropertyEditor::PropertyEditor::activated,
this, &PropertyEditor::onItemActivated);
connect(this, &Gui::PropertyEditor::PropertyEditor::clicked,
this, &PropertyEditor::onItemActivated);
connect(this, &Gui::PropertyEditor::PropertyEditor::expanded,
this, &PropertyEditor::onItemExpanded);
connect(this, &Gui::PropertyEditor::PropertyEditor::collapsed,
this, &PropertyEditor::onItemCollapsed);
connect(propertyModel, &Gui::PropertyEditor::PropertyModel::rowsMoved,
this, &PropertyEditor::onRowsMoved);
connect(propertyModel, &Gui::PropertyEditor::PropertyModel::rowsRemoved,
this, &PropertyEditor::onRowsRemoved);
}
PropertyEditor::~PropertyEditor()