diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
commit | 48d4a26399959121f33d2bc3bfe51c7827b654fc (patch) | |
tree | 5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /src/profileengine/lib/profileengine.h | |
parent | 7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff) | |
download | tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip |
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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); |