diff options
Diffstat (limited to 'src/profileengine/lib/profileengine.h')
-rw-r--r-- | src/profileengine/lib/profileengine.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/profileengine/lib/profileengine.h b/src/profileengine/lib/profileengine.h index e790dece..9184df62 100644 --- a/src/profileengine/lib/profileengine.h +++ b/src/profileengine/lib/profileengine.h @@ -177,8 +177,8 @@ public: template<class Operation> void walkProfiles(Operation &op, Profile *root) { - TQValueList<Profile*> children = root->children(); - for (TQValueList<Profile*>::iterator it = children.begin(); it != children.end(); ++it) + TQValueList<Profile*> tqchildren = root->tqchildren(); + for (TQValueList<Profile*>::iterator it = tqchildren.begin(); it != tqchildren.end(); ++it) { op(*it); walkProfiles<Operation>(op, *it); @@ -189,7 +189,7 @@ public: but the operation in this case returns a result of type defined by "Result" template parameter. - When iterating the tree, the result of operation applied to the parent profile + When iterating the tree, the result of operation applied to the tqparent profile is passed as @p result parameter to the recursive call for child profiles. For example, this function can be used to build another hierarcy of profiles @@ -199,24 +199,24 @@ public: @code class ProfileListBuilding { public: - ProfileItem * operator() (ProfileItem *parent, Profile *profile) + ProfileItem * operator() (ProfileItem *tqparent, Profile *profile) { - parent->setOpen(true); - return new ProfileItem(parent, profile); + tqparent->setOpen(true); + return new ProfileItem(tqparent, profile); } }; class ProfileItem: public KListViewItem { public: - ProfileItem(KListView *parent, Profile *profile) - :KListViewItem(parent), m_profile(profile) + ProfileItem(KListView *tqparent, Profile *profile) + :KListViewItem(tqparent), m_profile(profile) { setText(0, profile->genericName()); setText(1, profile->description()); } - ProfileItem(KListViewItem *parent, Profile *profile) - : KListViewItem(parent), m_profile(profile) + ProfileItem(KListViewItem *tqparent, Profile *profile) + : KListViewItem(tqparent), m_profile(profile) { setText(0, profile->genericName()); setText(1, profile->description()); @@ -244,8 +244,8 @@ public: template<class Operation, class Result> void walkProfiles(Operation &op, Result *result, Profile *root) { - TQValueList<Profile*> children = root->children(); - for (TQValueList<Profile*>::iterator it = children.begin(); it != children.end(); ++it) + TQValueList<Profile*> tqchildren = root->tqchildren(); + for (TQValueList<Profile*>::iterator it = tqchildren.begin(); it != tqchildren.end(); ++it) { Result *newResult = op(result, *it); walkProfiles<Operation>(op, newResult, *it); |