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
@@ -40,14 +40,14 @@ OpenWithDialog::OpenWithDialog(const QString &fileName, QWidget *parent)
|
||||
label->setText(tr("Open file \"%1\" with:").arg(Utils::FileName::fromString(fileName).fileName()));
|
||||
buttonBox->button(QDialogButtonBox::Ok)->setDefault(true);
|
||||
|
||||
connect(buttonBox->button(QDialogButtonBox::Ok), SIGNAL(clicked()),
|
||||
this, SLOT(accept()));
|
||||
connect(buttonBox->button(QDialogButtonBox::Cancel), SIGNAL(clicked()),
|
||||
this, SLOT(reject()));
|
||||
connect(editorListWidget, SIGNAL(itemDoubleClicked(QListWidgetItem*)),
|
||||
this, SLOT(accept()));
|
||||
connect(editorListWidget, SIGNAL(currentItemChanged(QListWidgetItem*,QListWidgetItem*)),
|
||||
this, SLOT(currentItemChanged(QListWidgetItem*,QListWidgetItem*)));
|
||||
connect(buttonBox->button(QDialogButtonBox::Ok), &QAbstractButton::clicked,
|
||||
this, &QDialog::accept);
|
||||
connect(buttonBox->button(QDialogButtonBox::Cancel), &QAbstractButton::clicked,
|
||||
this, &QDialog::reject);
|
||||
connect(editorListWidget, &QListWidget::itemDoubleClicked,
|
||||
this, &QDialog::accept);
|
||||
connect(editorListWidget, &QListWidget::currentItemChanged,
|
||||
this, &OpenWithDialog::currentItemChanged);
|
||||
|
||||
setOkButtonEnabled(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user