Part: fix -Wclazy-connect-by-name

This commit is contained in:
wmayer
2023-04-03 10:53:30 +02:00
committed by wwmayer
parent dd32810167
commit 6401c18937
26 changed files with 401 additions and 217 deletions

View File

@@ -86,6 +86,8 @@ DlgBooleanOperation::DlgBooleanOperation(QWidget* parent)
: QWidget(parent), ui(new Ui_DlgBooleanOperation)
{
ui->setupUi(this);
connect(ui->swapButton, &QPushButton::clicked,
this, &DlgBooleanOperation::onSwapButtonClicked);
connect(ui->firstShape, &QTreeWidget::currentItemChanged,
this, &DlgBooleanOperation::currentItemChanged);
connect(ui->secondShape, &QTreeWidget::currentItemChanged,
@@ -316,7 +318,7 @@ void DlgBooleanOperation::currentItemChanged(QTreeWidgetItem* current, QTreeWidg
// previous->setCheckState(0, Qt::Unchecked);
}
void DlgBooleanOperation::on_swapButton_clicked()
void DlgBooleanOperation::onSwapButtonClicked()
{
QTreeWidgetItem* lChild = ui->firstShape->currentItem();
bool lsel = (lChild && (lChild->checkState(0) & Qt::Checked));