forked from qt-creator/qt-creator
Drop Qt5: VCS: Get rid of QComboBox QOverload
Change-Id: Ib2f21f28a0ec16b817f9227c6234424001752d50 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -57,7 +57,7 @@ GitLabDialog::GitLabDialog(QWidget *parent)
|
||||
|
||||
updateRemotes();
|
||||
|
||||
connect(m_ui.remoteCB, QOverload<int>::of(&QComboBox::currentIndexChanged),
|
||||
connect(m_ui.remoteCB, &QComboBox::currentIndexChanged,
|
||||
this, &GitLabDialog::requestMainViewUpdate);
|
||||
connect(m_ui.searchLE, &QLineEdit::returnPressed, this, &GitLabDialog::querySearch);
|
||||
connect(m_ui.searchPB, &QPushButton::clicked, this, &GitLabDialog::querySearch);
|
||||
|
||||
@@ -156,8 +156,7 @@ GitLabOptionsWidget::GitLabOptionsWidget(QWidget *parent)
|
||||
connect(m_edit, &QPushButton::clicked, this, &GitLabOptionsWidget::showEditServerDialog);
|
||||
connect(m_remove, &QPushButton::clicked, this, &GitLabOptionsWidget::removeCurrentTriggered);
|
||||
connect(m_add, &QPushButton::clicked, this, &GitLabOptionsWidget::showAddServerDialog);
|
||||
connect(m_defaultGitLabServer, QOverload<int>::of(&QComboBox::currentIndexChanged),
|
||||
this, [this]() {
|
||||
connect(m_defaultGitLabServer, &QComboBox::currentIndexChanged, this, [this] {
|
||||
m_gitLabServerWidget->setGitLabServer(
|
||||
m_defaultGitLabServer->currentData().value<GitLabServer>());
|
||||
});
|
||||
|
||||
@@ -163,20 +163,18 @@ GitLabProjectSettingsWidget::GitLabProjectSettingsWidget(ProjectExplorer::Projec
|
||||
verticalLayout->addWidget(new QLabel(tr("Projects linked with GitLab receive event "
|
||||
"notifications in the Version Control output pane.")));
|
||||
|
||||
connect(m_linkWithGitLab, &QPushButton::clicked, this, [this]() {
|
||||
connect(m_linkWithGitLab, &QPushButton::clicked, this, [this] {
|
||||
checkConnection(Link);
|
||||
});
|
||||
connect(m_unlink, &QPushButton::clicked,
|
||||
this, &GitLabProjectSettingsWidget::unlink);
|
||||
connect(m_checkConnection, &QPushButton::clicked, this, [this]() {
|
||||
connect(m_checkConnection, &QPushButton::clicked, this, [this] {
|
||||
checkConnection(Connection);
|
||||
});
|
||||
connect(m_linkedGitLabServer, QOverload<int>::of(&QComboBox::currentIndexChanged),
|
||||
this, [this]() {
|
||||
connect(m_linkedGitLabServer, &QComboBox::currentIndexChanged, this, [this] {
|
||||
m_infoLabel->setVisible(false);
|
||||
});
|
||||
connect(m_hostCB, QOverload<int>::of(&QComboBox::currentIndexChanged),
|
||||
this, [this]() {
|
||||
connect(m_hostCB, &QComboBox::currentIndexChanged, this, [this] {
|
||||
m_infoLabel->setVisible(false);
|
||||
});
|
||||
connect(GitLabPlugin::optionsPage(), &GitLabOptionsPage::settingsChanged,
|
||||
|
||||
Reference in New Issue
Block a user