Commit 79d3d234 authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh
Browse files

Git: Use side-by-side layout for Fixup Previous Commit



Similar to simple commit layout.

Change-Id: If9470d47159cba21f11aefc8e2cc4895d10ff409
Reviewed-by: default avatarAndré Hartmann <aha_1980@gmx.de>
parent 0c26483d
...@@ -105,7 +105,7 @@ void GitSubmitEditorWidget::initialize(CommitType commitType, ...@@ -105,7 +105,7 @@ void GitSubmitEditorWidget::initialize(CommitType commitType,
connect(m_logChangeWidget, &LogChangeWidget::activated, connect(m_logChangeWidget, &LogChangeWidget::activated,
this, &GitSubmitEditorWidget::show); this, &GitSubmitEditorWidget::show);
logChangeLayout->addWidget(m_logChangeWidget); logChangeLayout->addWidget(m_logChangeWidget);
insertTopWidget(logChangeGroupBox); insertLeftWidget(logChangeGroupBox);
m_gitSubmitPanelUi.editGroup->hide(); m_gitSubmitPanelUi.editGroup->hide();
hideDescription(); hideDescription();
} }
......
...@@ -561,6 +561,11 @@ void SubmitEditorWidget::insertTopWidget(QWidget *w) ...@@ -561,6 +561,11 @@ void SubmitEditorWidget::insertTopWidget(QWidget *w)
d->m_ui.vboxLayout->insertWidget(0, w); d->m_ui.vboxLayout->insertWidget(0, w);
} }
void SubmitEditorWidget::insertLeftWidget(QWidget *w)
{
d->m_ui.splitter->insertWidget(0, w);
}
void SubmitEditorWidget::addSubmitButtonMenu(QMenu *menu) void SubmitEditorWidget::addSubmitButtonMenu(QMenu *menu)
{ {
d->m_submitButton->setMenu(menu); d->m_submitButton->setMenu(menu);
......
...@@ -122,6 +122,7 @@ protected: ...@@ -122,6 +122,7 @@ protected:
virtual QString cleanupDescription(const QString &) const; virtual QString cleanupDescription(const QString &) const;
virtual QString commitName() const; virtual QString commitName() const;
void insertTopWidget(QWidget *w); void insertTopWidget(QWidget *w);
void insertLeftWidget(QWidget *w);
void addSubmitButtonMenu(QMenu *menu); void addSubmitButtonMenu(QMenu *menu);
void hideDescription(); void hideDescription();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment