forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -37,6 +37,7 @@ public:
|
|||||||
GitSubmitPanel()
|
GitSubmitPanel()
|
||||||
{
|
{
|
||||||
repositoryLabel = new QLabel(Tr::tr("repository"));
|
repositoryLabel = new QLabel(Tr::tr("repository"));
|
||||||
|
repositoryLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
|
||||||
branchLabel = new QLabel(Tr::tr("branch")); // FIXME: Isn't this overwritten soon?
|
branchLabel = new QLabel(Tr::tr("branch")); // FIXME: Isn't this overwritten soon?
|
||||||
showHeadLabel = new QLabel("<a href=\"head\">" + Tr::tr("Show HEAD") + "</a>");
|
showHeadLabel = new QLabel("<a href=\"head\">" + Tr::tr("Show HEAD") + "</a>");
|
||||||
|
|
||||||
@@ -64,18 +65,18 @@ public:
|
|||||||
|
|
||||||
editGroup = new QGroupBox(Tr::tr("Commit Information"));
|
editGroup = new QGroupBox(Tr::tr("Commit Information"));
|
||||||
Grid {
|
Grid {
|
||||||
Tr::tr("Author:"), authorLineEdit, invalidAuthorLabel, st, br,
|
Tr::tr("Author:"), authorLineEdit, invalidAuthorLabel, br,
|
||||||
Tr::tr("Email:"), emailLineEdit, invalidEmailLabel, br,
|
Tr::tr("Email:"), emailLineEdit, invalidEmailLabel, br,
|
||||||
empty, Row { bypassHooksCheckBox, signOffCheckBox, st }
|
empty, Row { bypassHooksCheckBox, signOffCheckBox, st }
|
||||||
}.attachTo(editGroup);
|
}.attachTo(editGroup);
|
||||||
|
|
||||||
Column {
|
Row {
|
||||||
Group {
|
Group {
|
||||||
title(Tr::tr("General Information")),
|
title(Tr::tr("General Information")),
|
||||||
Form {
|
Form {
|
||||||
Tr::tr("Repository:"), repositoryLabel, br,
|
Tr::tr("Repository:"), repositoryLabel, br,
|
||||||
Tr::tr("Branch:"), branchLabel, br,
|
Tr::tr("Branch:"), branchLabel, br,
|
||||||
Span(2, showHeadLabel)
|
empty, showHeadLabel
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
editGroup,
|
editGroup,
|
||||||
|
|||||||
Reference in New Issue
Block a user