TD: move to new style connect()
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user