mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Prefix object attribute with "m_".
This commit is contained in:
parent
97ca81f316
commit
d2e677c7f4
@ -23,21 +23,21 @@
|
||||
|
||||
GroupView::GroupView(Database* db, QWidget* parent) : QTreeView(parent)
|
||||
{
|
||||
model = new GroupModel(db, this);
|
||||
QTreeView::setModel(model);
|
||||
m_model = new GroupModel(db, this);
|
||||
QTreeView::setModel(m_model);
|
||||
recInitExpanded(db->rootGroup());
|
||||
setHeaderHidden(true);
|
||||
}
|
||||
|
||||
void GroupView::expandedChanged(const QModelIndex& index)
|
||||
{
|
||||
Group* group = const_cast<Group*>(model->groupFromIndex(index));
|
||||
Group* group = const_cast<Group*>(m_model->groupFromIndex(index));
|
||||
group->setExpanded(isExpanded(index));
|
||||
}
|
||||
|
||||
void GroupView::recInitExpanded(const Group* group)
|
||||
{
|
||||
QModelIndex index = model->index(group);
|
||||
QModelIndex index = m_model->index(group);
|
||||
setExpanded(index, group->isExpanded());
|
||||
|
||||
Q_FOREACH (const Group* child, group->children()) {
|
||||
|
@ -38,8 +38,7 @@ private Q_SLOTS:
|
||||
private:
|
||||
void recInitExpanded(const Group* group);
|
||||
|
||||
Database* db;
|
||||
GroupModel* model;
|
||||
GroupModel* m_model;
|
||||
};
|
||||
|
||||
#endif // KEEPASSX_GROUPVIEW_H
|
||||
|
Loading…
Reference in New Issue
Block a user