forked from qt-creator/qt-creator
VcsBase: use Qt5 connects
Change-Id: I386da06c9abe27913e85b2ed9984a83938f5457c Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -298,17 +298,17 @@ void SubmitFieldWidget::createField(const QString &f)
|
||||
}
|
||||
}
|
||||
|
||||
connect(fe.browseButton, SIGNAL(clicked()), this, SLOT(slotBrowseButtonClicked()));
|
||||
connect(fe.browseButton, &QAbstractButton::clicked, this, &SubmitFieldWidget::slotBrowseButtonClicked);
|
||||
if (!d->hasBrowseButton)
|
||||
fe.browseButton->setVisible(false);
|
||||
|
||||
if (d->completer)
|
||||
fe.lineEdit->setCompleter(d->completer);
|
||||
|
||||
connect(fe.combo, SIGNAL(currentIndexChanged(int)),
|
||||
this, SLOT(slotComboIndexChanged(int)));
|
||||
connect(fe.clearButton, SIGNAL(clicked()),
|
||||
this, SLOT(slotRemove()));
|
||||
connect(fe.combo, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged),
|
||||
this, &SubmitFieldWidget::slotComboIndexChanged);
|
||||
connect(fe.clearButton, &QAbstractButton::clicked,
|
||||
this, &SubmitFieldWidget::slotRemove);
|
||||
d->layout->addLayout(fe.layout);
|
||||
d->fieldEntries.push_back(fe);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user