aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/git/gitsubmiteditorwidget.cpp
diff options
context:
space:
mode:
authorTasuku Suzuki <tasuku.suzuki@signal-slot.co.jp>2023-10-14 14:15:15 +0900
committerTasuku Suzuki <tasuku.suzuki@signal-slot.co.jp>2023-12-04 10:36:55 +0000
commit0afd50aa3361b46069dbe32cfa11286ea950549e (patch)
tree1c6086fa77d4529ad07fa17a55211dce9a400470 /src/plugins/git/gitsubmiteditorwidget.cpp
parent0e59c9e4e1edce5a436feaf567dfdfbc416e626b (diff)
Git: Improve upper part of layout
In small screen, General Information and Commit Information fill more spaces than their importance. This commit changes their layout from vertical to horizontal. Change-Id: I919f1ac5fd02f32fda54698b012330ecebbd6ab0 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Diffstat (limited to 'src/plugins/git/gitsubmiteditorwidget.cpp')
-rw-r--r--src/plugins/git/gitsubmiteditorwidget.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/git/gitsubmiteditorwidget.cpp b/src/plugins/git/gitsubmiteditorwidget.cpp
index ec09437e26..c9b716df26 100644
--- a/src/plugins/git/gitsubmiteditorwidget.cpp
+++ b/src/plugins/git/gitsubmiteditorwidget.cpp
@@ -37,6 +37,7 @@ public:
GitSubmitPanel()
{
repositoryLabel = new QLabel(Tr::tr("repository"));
+ repositoryLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
branchLabel = new QLabel(Tr::tr("branch")); // FIXME: Isn't this overwritten soon?
showHeadLabel = new QLabel("<a href=\"head\">" + Tr::tr("Show HEAD") + "</a>");
@@ -64,18 +65,18 @@ public:
editGroup = new QGroupBox(Tr::tr("Commit Information"));
Grid {
- Tr::tr("Author:"), authorLineEdit, invalidAuthorLabel, st, br,
+ Tr::tr("Author:"), authorLineEdit, invalidAuthorLabel, br,
Tr::tr("Email:"), emailLineEdit, invalidEmailLabel, br,
empty, Row { bypassHooksCheckBox, signOffCheckBox, st }
}.attachTo(editGroup);
- Column {
+ Row {
Group {
title(Tr::tr("General Information")),
Form {
Tr::tr("Repository:"), repositoryLabel, br,
Tr::tr("Branch:"), branchLabel, br,
- Span(2, showHeadLabel)
+ empty, showHeadLabel
}
},
editGroup,