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()
|
||||
{
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user