forked from qt-creator/qt-creator
Todo: Use Qt5-style connects
The heavy lifting was done by clazy. Change-Id: I6132a266f9d350dfecd7a12b03877bdcbbc31302 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
4c09ead418
commit
a9f73d079a
@@ -47,8 +47,8 @@ KeywordDialog::KeywordDialog(const Keyword &keyword, const QSet<QString> &alread
|
||||
ui->keywordNameEdit->setText(keyword.name);
|
||||
ui->errorLabel->hide();
|
||||
|
||||
connect(ui->buttonBox, SIGNAL(accepted()), SLOT(acceptButtonClicked()));
|
||||
connect(ui->keywordNameEdit, SIGNAL(textChanged(QString)), ui->errorLabel, SLOT(hide()));
|
||||
connect(ui->buttonBox, &QDialogButtonBox::accepted, this, &KeywordDialog::acceptButtonClicked);
|
||||
connect(ui->keywordNameEdit, &QLineEdit::textChanged, ui->errorLabel, &QWidget::hide);
|
||||
}
|
||||
|
||||
KeywordDialog::~KeywordDialog()
|
||||
@@ -108,7 +108,7 @@ void KeywordDialog::setupColorWidgets(const QColor &color)
|
||||
{
|
||||
ui->colorButton->setColor(color);
|
||||
ui->colorEdit->setText(color.name());
|
||||
connect(ui->colorButton, SIGNAL(colorChanged(QColor)), SLOT(colorSelected(QColor)));
|
||||
connect(ui->colorButton, &Utils::QtColorButton::colorChanged, this, &KeywordDialog::colorSelected);
|
||||
}
|
||||
|
||||
bool KeywordDialog::canAccept()
|
||||
|
||||
Reference in New Issue
Block a user