From d2e677c7f42a356577e62b5e19f998728243f6bb Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Mon, 23 Aug 2010 20:57:38 +0200 Subject: [PATCH] Prefix object attribute with "m_". --- src/gui/GroupView.cpp | 8 ++++---- src/gui/GroupView.h | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/gui/GroupView.cpp b/src/gui/GroupView.cpp index 1c351c9c..5e3fc459 100644 --- a/src/gui/GroupView.cpp +++ b/src/gui/GroupView.cpp @@ -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(model->groupFromIndex(index)); + Group* group = const_cast(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()) { diff --git a/src/gui/GroupView.h b/src/gui/GroupView.h index 3c1ed890..9db9aa9c 100644 --- a/src/gui/GroupView.h +++ b/src/gui/GroupView.h @@ -38,8 +38,7 @@ private Q_SLOTS: private: void recInitExpanded(const Group* group); - Database* db; - GroupModel* model; + GroupModel* m_model; }; #endif // KEEPASSX_GROUPVIEW_H