TD: move to new style connect()
This commit is contained in:
@@ -66,16 +66,16 @@ TaskWeldingSymbol::TaskWeldingSymbol(TechDraw::DrawLeaderLine* leadFeat) :
|
||||
|
||||
setUiPrimary();
|
||||
|
||||
connect(ui->pbArrowSymbol, SIGNAL(clicked(bool)),
|
||||
this, SLOT(onArrowSymbolCreateClicked()));
|
||||
connect(ui->pbOtherSymbol, SIGNAL(clicked(bool)),
|
||||
this, SLOT(onOtherSymbolCreateClicked()));
|
||||
connect(ui->pbOtherErase, SIGNAL(clicked(bool)),
|
||||
this, SLOT(onOtherEraseCreateClicked()));
|
||||
connect(ui->pbFlipSides, SIGNAL(clicked(bool)),
|
||||
this, SLOT(onFlipSidesCreateClicked()));
|
||||
connect(ui->fcSymbolDir, SIGNAL(fileNameSelected(QString)),
|
||||
this, SLOT(onDirectorySelected(QString)));
|
||||
connect(ui->pbArrowSymbol, &QPushButton::clicked,
|
||||
this, &TaskWeldingSymbol::onArrowSymbolCreateClicked);
|
||||
connect(ui->pbOtherSymbol, &QPushButton::clicked,
|
||||
this, &TaskWeldingSymbol::onOtherSymbolCreateClicked);
|
||||
connect(ui->pbOtherErase, &QPushButton::clicked,
|
||||
this, &TaskWeldingSymbol::onOtherEraseCreateClicked);
|
||||
connect(ui->pbFlipSides, &QPushButton::clicked,
|
||||
this, &TaskWeldingSymbol::onFlipSidesCreateClicked);
|
||||
connect(ui->fcSymbolDir, &FileChooser::fileNameSelected,
|
||||
this, &TaskWeldingSymbol::onDirectorySelected);
|
||||
}
|
||||
|
||||
//ctor for edit
|
||||
@@ -106,40 +106,40 @@ TaskWeldingSymbol::TaskWeldingSymbol(TechDraw::DrawWeldSymbol* weld) :
|
||||
|
||||
setUiEdit();
|
||||
|
||||
connect(ui->pbArrowSymbol, SIGNAL(clicked(bool)),
|
||||
this, SLOT(onArrowSymbolClicked()));
|
||||
connect(ui->pbOtherSymbol, SIGNAL(clicked(bool)),
|
||||
this, SLOT(onOtherSymbolClicked()));
|
||||
connect(ui->pbOtherErase, SIGNAL(clicked(bool)),
|
||||
this, SLOT(onOtherEraseClicked()));
|
||||
connect(ui->pbFlipSides, SIGNAL(clicked(bool)),
|
||||
this, SLOT(onFlipSidesClicked()));
|
||||
connect(ui->pbArrowSymbol, &QPushButton::clicked,
|
||||
this, &TaskWeldingSymbol::onArrowSymbolClicked);
|
||||
connect(ui->pbOtherSymbol, &QPushButton::clicked,
|
||||
this, &TaskWeldingSymbol::onOtherSymbolClicked);
|
||||
connect(ui->pbOtherErase, &QPushButton::clicked,
|
||||
this, &TaskWeldingSymbol::onOtherEraseClicked);
|
||||
connect(ui->pbFlipSides, &QPushButton::clicked,
|
||||
this, &TaskWeldingSymbol::onFlipSidesClicked);
|
||||
|
||||
connect(ui->fcSymbolDir, SIGNAL(fileNameSelected(const QString&)),
|
||||
this, SLOT(onDirectorySelected(const QString&)));
|
||||
connect(ui->fcSymbolDir, &FileChooser::fileNameSelected,
|
||||
this, &TaskWeldingSymbol::onDirectorySelected);
|
||||
|
||||
connect(ui->leArrowTextL, SIGNAL(textEdited(QString)),
|
||||
this, SLOT(onArrowTextChanged()));
|
||||
connect(ui->leArrowTextR, SIGNAL(textEdited(QString)),
|
||||
this, SLOT(onArrowTextChanged()));
|
||||
connect(ui->leArrowTextC, SIGNAL(textEdited(QString)),
|
||||
this, SLOT(onArrowTextChanged()));
|
||||
connect(ui->leArrowTextL, &QLineEdit::textEdited,
|
||||
this, &TaskWeldingSymbol::onArrowTextChanged);
|
||||
connect(ui->leArrowTextR, &QLineEdit::textEdited,
|
||||
this, &TaskWeldingSymbol::onArrowTextChanged);
|
||||
connect(ui->leArrowTextC, &QLineEdit::textEdited,
|
||||
this, &TaskWeldingSymbol::onArrowTextChanged);
|
||||
|
||||
connect(ui->leOtherTextL, SIGNAL(textEdited(QString)),
|
||||
this, SLOT(onOtherTextChanged()));
|
||||
connect(ui->leOtherTextR, SIGNAL(textEdited(QString)),
|
||||
this, SLOT(onOtherTextChanged()));
|
||||
connect(ui->leOtherTextC, SIGNAL(textEdited(QString)),
|
||||
this, SLOT(onOtherTextChanged()));
|
||||
connect(ui->leOtherTextL, &QLineEdit::textEdited,
|
||||
this, &TaskWeldingSymbol::onOtherTextChanged);
|
||||
connect(ui->leOtherTextR, &QLineEdit::textEdited,
|
||||
this, &TaskWeldingSymbol::onOtherTextChanged);
|
||||
connect(ui->leOtherTextC, &QLineEdit::textEdited,
|
||||
this, &TaskWeldingSymbol::onOtherTextChanged);
|
||||
|
||||
connect(ui->leTailText, SIGNAL(textEdited(QString)),
|
||||
this, SLOT(onWeldingChanged()));
|
||||
connect(ui->cbFieldWeld, SIGNAL(toggled(bool)),
|
||||
this, SLOT(onWeldingChanged()));
|
||||
connect(ui->cbAllAround, SIGNAL(toggled(bool)),
|
||||
this, SLOT(onWeldingChanged()));
|
||||
connect(ui->cbAltWeld, SIGNAL(toggled(bool)),
|
||||
this, SLOT(onWeldingChanged()));
|
||||
connect(ui->leTailText, &QLineEdit::textEdited,
|
||||
this, &TaskWeldingSymbol::onWeldingChanged);
|
||||
connect(ui->cbFieldWeld, &QCheckBox::toggled,
|
||||
this, &TaskWeldingSymbol::onWeldingChanged);
|
||||
connect(ui->cbAllAround, &QCheckBox::toggled,
|
||||
this, &TaskWeldingSymbol::onWeldingChanged);
|
||||
connect(ui->cbAltWeld, &QCheckBox::toggled,
|
||||
this, &TaskWeldingSymbol::onWeldingChanged);
|
||||
}
|
||||
|
||||
TaskWeldingSymbol::~TaskWeldingSymbol()
|
||||
@@ -244,8 +244,8 @@ void TaskWeldingSymbol::symbolDialog(const char* source)
|
||||
{
|
||||
QString _source = tr(source);
|
||||
SymbolChooser* dlg = new SymbolChooser(this, m_currDir, _source);
|
||||
connect(dlg, SIGNAL(symbolSelected(QString, QString)),
|
||||
this, SLOT(onSymbolSelected(QString, QString)));
|
||||
connect(dlg, &SymbolChooser::symbolSelected,
|
||||
this, &TaskWeldingSymbol::onSymbolSelected);
|
||||
dlg->setAttribute(Qt::WA_DeleteOnClose);
|
||||
dlg->exec();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user