Part: move to new style connect()

This commit is contained in:
wmayer
2023-01-13 17:14:07 +01:00
parent c252e611f2
commit 0680121bd1
10 changed files with 103 additions and 92 deletions

View File

@@ -119,8 +119,13 @@ ShapeBuilderWidget::ShapeBuilderWidget(QWidget* parent)
d->bg.addButton(d->ui.radioButtonSolidFromShell, 5);
d->bg.setExclusive(true);
connect(&d->bg, SIGNAL(buttonClicked(int)),
this, SLOT(switchMode(int)));
#if QT_VERSION < QT_VERSION_CHECK(5,15,0)
connect(&d->bg, qOverload<int>(&QButtonGroup::buttonClicked),
this, &ShapeBuilderWidget::switchMode);
#else
connect(&d->bg, &QButtonGroup::idClicked,
this, &ShapeBuilderWidget::switchMode);
#endif
d->gate = new ShapeSelection();
Gui::Selection().addSelectionGate(d->gate);