mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-05 21:47:38 +03:00
Un-constify Entry* and Group* in various related signals and models/views.
This commit is contained in:
parent
d2e677c7f4
commit
e96c3bb011
11 changed files with 66 additions and 65 deletions
|
@ -31,16 +31,16 @@ GroupView::GroupView(Database* db, QWidget* parent) : QTreeView(parent)
|
|||
|
||||
void GroupView::expandedChanged(const QModelIndex& index)
|
||||
{
|
||||
Group* group = const_cast<Group*>(m_model->groupFromIndex(index));
|
||||
Group* group = m_model->groupFromIndex(index);
|
||||
group->setExpanded(isExpanded(index));
|
||||
}
|
||||
|
||||
void GroupView::recInitExpanded(const Group* group)
|
||||
void GroupView::recInitExpanded(Group* group)
|
||||
{
|
||||
QModelIndex index = m_model->index(group);
|
||||
setExpanded(index, group->isExpanded());
|
||||
|
||||
Q_FOREACH (const Group* child, group->children()) {
|
||||
Q_FOREACH (Group* child, group->children()) {
|
||||
recInitExpanded(child);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue