aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/gitlab
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2023-05-02 12:51:03 +0200
committerhjk <hjk@qt.io>2023-05-03 13:44:19 +0000
commit50084f6b0ed78bfee6f5e1d2e56ade9b52b3f2f6 (patch)
tree2b37874169711de1464403557f8ecf785864b24f /src/plugins/gitlab
parent70b02d23e1a32a1c4911644cb73b7247430a4416 (diff)
Layouting: Handle attach types via setter
Change-Id: I862f5cd109db3582b4f029787ec0cded2da39ce6 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/plugins/gitlab')
-rw-r--r--src/plugins/gitlab/gitlaboptionspage.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/gitlab/gitlaboptionspage.cpp b/src/plugins/gitlab/gitlaboptionspage.cpp
index 447b9111a8..c9e654af83 100644
--- a/src/plugins/gitlab/gitlaboptionspage.cpp
+++ b/src/plugins/gitlab/gitlaboptionspage.cpp
@@ -101,9 +101,10 @@ GitLabServerWidget::GitLabServerWidget(Mode m, QWidget *parent)
m_description,
m_token,
m_port,
- m_secure
+ m_secure,
+ m == Edit ? normalMargin : noMargin
},
- }.attachTo(this, m == Edit ? WithMargins : WithoutMargins);
+ }.attachTo(this);
}
GitLabServer GitLabServerWidget::gitLabServer() const