diff --git a/src/plugins/gitlab/gitlaboptionspage.cpp b/src/plugins/gitlab/gitlaboptionspage.cpp index 160b729e82a..d533b985f81 100644 --- a/src/plugins/gitlab/gitlaboptionspage.cpp +++ b/src/plugins/gitlab/gitlaboptionspage.cpp @@ -81,9 +81,9 @@ GitLabServerWidget::GitLabServerWidget(Mode m, QWidget *parent) m_token.setVisible(m == Edit); m_port.setRange(1, 65535); - m_port.setDefaultValue(GitLabServer::defaultPort); + m_port.setValue(GitLabServer::defaultPort); + auto portLabel = new QLabel(tr("Port:"), this); m_port.setEnabled(m == Edit); - m_port.setLabelText(tr("Port:")); m_secure.setLabelText(tr("HTTPS:")); m_secure.setLabelPlacement(Utils::BoolAspect::LabelPlacement::InExtraLabel); m_secure.setDefaultValue(true); @@ -97,7 +97,7 @@ GitLabServerWidget::GitLabServerWidget(Mode m, QWidget *parent) m_host, m_description, m_token, - m_port, + portLabel, &m_port, nl, m_secure }, Stretch() diff --git a/src/plugins/gitlab/gitlaboptionspage.h b/src/plugins/gitlab/gitlaboptionspage.h index 4779028fbd9..4d89b20b006 100644 --- a/src/plugins/gitlab/gitlaboptionspage.h +++ b/src/plugins/gitlab/gitlaboptionspage.h @@ -31,6 +31,7 @@ #include #include +#include QT_BEGIN_NAMESPACE class QComboBox; @@ -55,7 +56,7 @@ private: Utils::StringAspect m_host; Utils::StringAspect m_description; Utils::StringAspect m_token; - Utils::IntegerAspect m_port; + QSpinBox m_port; Utils::BoolAspect m_secure; };