Drop Qt5: VCS: Get rid of QComboBox QOverload

Change-Id: Ib2f21f28a0ec16b817f9227c6234424001752d50
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Jarek Kobus
2022-07-19 22:57:37 +02:00
parent ae9a330344
commit 60a5f77ef2
8 changed files with 15 additions and 20 deletions

View File

@@ -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,