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

@@ -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>());
});