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
@@ -82,10 +82,11 @@ SaveItemsDialog::SaveItemsDialog(QWidget *parent,
|
||||
adjustButtonWidths();
|
||||
updateSaveButton();
|
||||
|
||||
connect(m_ui.buttonBox->button(QDialogButtonBox::Save), SIGNAL(clicked()),
|
||||
this, SLOT(collectItemsToSave()));
|
||||
connect(discardButton, SIGNAL(clicked()), this, SLOT(discardAll()));
|
||||
connect(m_ui.treeWidget, SIGNAL(itemSelectionChanged()), this, SLOT(updateSaveButton()));
|
||||
connect(m_ui.buttonBox->button(QDialogButtonBox::Save), &QAbstractButton::clicked,
|
||||
this, &SaveItemsDialog::collectItemsToSave);
|
||||
connect(discardButton, &QAbstractButton::clicked, this, &SaveItemsDialog::discardAll);
|
||||
connect(m_ui.treeWidget, &QTreeWidget::itemSelectionChanged,
|
||||
this, &SaveItemsDialog::updateSaveButton);
|
||||
}
|
||||
|
||||
void SaveItemsDialog::setMessage(const QString &msg)
|
||||
|
||||
Reference in New Issue
Block a user