Gui: move to new style connect()

This commit is contained in:
wmayer
2023-01-12 17:40:20 +01:00
parent 2eb8c6cc9f
commit 3354fa033b
5 changed files with 23 additions and 24 deletions

View File

@@ -123,8 +123,8 @@ void DlgObjectSelection::init(const std::vector<App::DocumentObject*> &objs,
ui->treeWidget->headerItem()->setText(0, tr("Selections"));
ui->treeWidget->header()->setStretchLastSection(false);
connect(ui->treeWidget, SIGNAL(itemExpanded(QTreeWidgetItem*)),
this, SLOT(onItemExpanded(QTreeWidgetItem*)));
connect(ui->treeWidget, &QTreeWidget::itemExpanded,
this, &DlgObjectSelection::onItemExpanded);
allItem = new QTreeWidgetItem(ui->treeWidget);
allItem->setText(0, QStringLiteral("<%1>").arg(tr("All")));