Git - ChangeSelectionDialog select from recent history

Change-Id: Ib87f9bd997a5c7c07abfd56a05d9e454c1a9ea93
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com>
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Petar Perisin
2013-04-27 16:20:49 +02:00
parent 21ce4e59a4
commit f4eabcfa0e
4 changed files with 95 additions and 14 deletions

View File

@@ -113,6 +113,14 @@ QString LogChangeDialog::commit() const
return QString();
}
int LogChangeDialog::commitIndex() const
{
const QModelIndex currentIndex = m_treeView->selectionModel()->currentIndex();
if (currentIndex.isValid())
return currentIndex.row();
return -1;
}
QString LogChangeDialog::resetFlag() const
{
if (!m_resetTypeComboBox)