From 48d4a26399959121f33d2bc3bfe51c7827b654fc Mon Sep 17 00:00:00 2001 From: tpearson Date: Tue, 14 Jun 2011 16:45:05 +0000 Subject: 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 --- src/profileengine/lib/profileengine.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/profileengine/lib/profileengine.h') 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 void walkProfiles(Operation &op, Profile *root) { - TQValueList children = root->children(); - for (TQValueList::iterator it = children.begin(); it != children.end(); ++it) + TQValueList tqchildren = root->tqchildren(); + for (TQValueList::iterator it = tqchildren.begin(); it != tqchildren.end(); ++it) { op(*it); walkProfiles(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 void walkProfiles(Operation &op, Result *result, Profile *root) { - TQValueList children = root->children(); - for (TQValueList::iterator it = children.begin(); it != children.end(); ++it) + TQValueList tqchildren = root->tqchildren(); + for (TQValueList::iterator it = tqchildren.begin(); it != tqchildren.end(); ++it) { Result *newResult = op(result, *it); walkProfiles(op, newResult, *it); -- cgit v1.2.3