Valgrind: Port to Qt5-style connect

Change-Id: If5f36bb262b932b60133d4301ab614311ce1feee
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Orgad Shaneh
2015-02-06 12:39:07 +02:00
committed by hjk
parent 5b22e292bc
commit e9a6e99011
14 changed files with 141 additions and 143 deletions

View File

@@ -166,10 +166,14 @@ SuppressionDialog::SuppressionDialog(MemcheckErrorView *view, const QList<Error>
m_suppressionEdit->setPlainText(suppressions);
connect(m_fileChooser, SIGNAL(validChanged()), SLOT(validate()));
connect(m_suppressionEdit->document(), SIGNAL(contentsChanged()), SLOT(validate()));
connect(m_buttonBox, SIGNAL(accepted()), SLOT(accept()));
connect(m_buttonBox, SIGNAL(rejected()), SLOT(reject()));
connect(m_fileChooser, static_cast<void (Utils::PathChooser:: *)()>(&Utils::PathChooser::validChanged),
this, &SuppressionDialog::validate);
connect(m_suppressionEdit->document(), &QTextDocument::contentsChanged,
this, &SuppressionDialog::validate);
connect(m_buttonBox, &QDialogButtonBox::accepted,
this, &SuppressionDialog::accept);
connect(m_buttonBox, &QDialogButtonBox::rejected,
this, &SuppressionDialog::reject);
}
void SuppressionDialog::maybeShow(MemcheckErrorView *view)