Git: Replace bool argument with flags

For a start, it's a single flag. Will be extended.

Also change the default for includeRemotes to false (most callers pass false)

Change-Id: I969f89a06b85a42c134c0232d2947d58fe19ea0d
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Orgad Shaneh
2014-01-28 23:32:23 +02:00
committed by Orgad Shaneh
parent 25ddacc238
commit aa6dd83e08
6 changed files with 27 additions and 17 deletions

View File

@@ -98,7 +98,7 @@ void GitSubmitEditorWidget::initialize(CommitType commitType,
QVBoxLayout *logChangeLayout = new QVBoxLayout;
logChangeGroupBox->setLayout(logChangeLayout);
m_logChangeWidget = new LogChangeWidget;
m_logChangeWidget->init(repository, QString(), false);
m_logChangeWidget->init(repository);
connect(m_logChangeWidget, SIGNAL(doubleClicked(QString)), this, SIGNAL(show(QString)));
logChangeLayout->addWidget(m_logChangeWidget);
insertTopWidget(logChangeGroupBox);
@@ -121,7 +121,7 @@ void GitSubmitEditorWidget::initialize(CommitType commitType,
void GitSubmitEditorWidget::refreshLog(const QString &repository)
{
if (m_logChangeWidget)
m_logChangeWidget->init(repository, QString(), false);
m_logChangeWidget->init(repository);
}
GitSubmitEditorPanelData GitSubmitEditorWidget::panelData() const