mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-11-30 13:53:01 -08:00
Select newly created entries.
This commit is contained in:
1 parent
8122ab2b2c
commit
09248fdb14
5 files changed
+16
No files matched your search
@@ -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();
|
||||
|
||||
Reference in new issue
Block a user