forked from qt-creator/qt-creator
Core: Use Qt5-style connects
The heavy lifting was done by clazy. Change-Id: I2dde14919d917816d02117338205f8f861d8af0a Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
7a9cc3499e
commit
5646480f27
@@ -72,8 +72,8 @@ PromptOverwriteDialog::PromptOverwriteDialog(QWidget *parent) :
|
||||
m_view->setModel(m_model);
|
||||
mainLayout->addWidget(m_view);
|
||||
QDialogButtonBox *bb = new QDialogButtonBox(QDialogButtonBox::Ok|QDialogButtonBox::Cancel);
|
||||
connect(bb, SIGNAL(accepted()), this, SLOT(accept()));
|
||||
connect(bb, SIGNAL(rejected()), this, SLOT(reject()));
|
||||
connect(bb, &QDialogButtonBox::accepted, this, &QDialog::accept);
|
||||
connect(bb, &QDialogButtonBox::rejected, this, &QDialog::reject);
|
||||
mainLayout->addWidget(bb);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user