Select newly created entries.

This commit is contained in:
Florian Geyer committed 2012-05-09 20:03:13 +02:00
1 parent 8122ab2b2c
commit 09248fdb14
5 files changed
+16

No files matched your search

+7
View File
@@ -35,6 +35,13 @@ Entry* EntryModel::entryFromIndex(const QModelIndex& index) const
return m_group->entries().at(index.row());
}
QModelIndex EntryModel::indexFromEntry(Entry* entry) const
{
int row = m_group->entries().indexOf(entry);
Q_ASSERT(row != -1);
return index(row, 0);
}
void EntryModel::setGroup(Group* group)
{
beginResetModel();