TD: move to new style connect()

This commit is contained in:
wmayer
2023-01-31 21:21:38 +01:00
committed by Uwe
parent 5c03db60e0
commit 25beef481c
31 changed files with 380 additions and 365 deletions

View File

@@ -58,10 +58,10 @@ TaskLineDecor::TaskLineDecor(TechDraw::DrawViewPart* partFeat,
getDefaults();
ui->setupUi(this);
connect(ui->cb_Style, SIGNAL(currentIndexChanged(int)), this, SLOT(onStyleChanged(void)));
connect(ui->cc_Color, SIGNAL(changed()), this, SLOT(onColorChanged(void)));
connect(ui->dsb_Weight, SIGNAL(valueChanged(double)), this, SLOT(onWeightChanged(void)));
connect(ui->cb_Visible, SIGNAL(currentIndexChanged(int)), this, SLOT(onVisibleChanged(void)));
connect(ui->cb_Style, qOverload<int>(&QComboBox::currentIndexChanged), this, &TaskLineDecor::onStyleChanged);
connect(ui->cc_Color, &ColorButton::changed, this, &TaskLineDecor::onColorChanged);
connect(ui->dsb_Weight, qOverload<double>(&QuantitySpinBox::valueChanged), this, &TaskLineDecor::onWeightChanged);
connect(ui->cb_Visible, qOverload<int>(&QComboBox::currentIndexChanged), this, &TaskLineDecor::onVisibleChanged);
initUi();
}
@@ -260,10 +260,10 @@ TaskRestoreLines::TaskRestoreLines(TechDraw::DrawViewPart* partFeat,
{
ui->setupUi(this);
connect(ui->pb_All, SIGNAL(clicked( )), this, SLOT(onAllPressed(void)));
connect(ui->pb_Geometry, SIGNAL(clicked( )), this, SLOT(onGeometryPressed(void)));
connect(ui->pb_Cosmetic, SIGNAL(clicked( )), this, SLOT(onCosmeticPressed( void )));
connect(ui->pb_Center, SIGNAL(clicked( )), this, SLOT(onCenterPressed( void )));
connect(ui->pb_All, &QPushButton::clicked, this, &TaskRestoreLines::onAllPressed);
connect(ui->pb_Geometry, &QPushButton::clicked, this, &TaskRestoreLines::onGeometryPressed);
connect(ui->pb_Cosmetic, &QPushButton::clicked, this, &TaskRestoreLines::onCosmeticPressed);
connect(ui->pb_Center, &QPushButton::clicked, this, &TaskRestoreLines::onCenterPressed);
initUi();
}