summaryrefslogtreecommitdiffstats
path: root/src/profileengine
diff options
context:
space:
mode:
Diffstat (limited to 'src/profileengine')
-rw-r--r--src/profileengine/editor/profileeditor.cpp24
-rw-r--r--src/profileengine/editor/profileeditor.h2
-rw-r--r--src/profileengine/lib/profile.cpp8
-rw-r--r--src/profileengine/lib/profile.h6
-rw-r--r--src/profileengine/lib/profileengine.h16
5 files changed, 28 insertions, 28 deletions
diff --git a/src/profileengine/editor/profileeditor.cpp b/src/profileengine/editor/profileeditor.cpp
index ca6b6633..a80be429 100644
--- a/src/profileengine/editor/profileeditor.cpp
+++ b/src/profileengine/editor/profileeditor.cpp
@@ -40,15 +40,15 @@
class ProfileItem: public KListViewItem {
public:
- ProfileItem(KListView *tqparent, Profile *profile)
- :KListViewItem(tqparent), m_profile(profile)
+ ProfileItem(KListView *parent, Profile *profile)
+ :KListViewItem(parent), m_profile(profile)
{
setText(0, profile->genericName());
setText(1, profile->description());
}
- ProfileItem(KListViewItem *tqparent, Profile *profile)
- : KListViewItem(tqparent), m_profile(profile)
+ ProfileItem(KListViewItem *parent, Profile *profile)
+ : KListViewItem(parent), m_profile(profile)
{
setText(0, profile->genericName());
setText(1, profile->description());
@@ -62,8 +62,8 @@ private:
class EDListItem: public KListViewItem{
public:
- EDListItem(KListView *tqparent, const TQString &text, bool derived)
- : KListViewItem(tqparent, text), m_derived(derived)
+ EDListItem(KListView *parent, const TQString &text, bool derived)
+ : KListViewItem(parent, text), m_derived(derived)
{
}
@@ -84,16 +84,16 @@ private:
class ProfileListBuilding {
public:
- ProfileItem * operator() (ProfileItem *tqparent, Profile *profile)
+ ProfileItem * operator() (ProfileItem *parent, Profile *profile)
{
- tqparent->setOpen(true);
- return new ProfileItem(tqparent, profile);
+ parent->setOpen(true);
+ return new ProfileItem(parent, profile);
}
};
-ProfileEditor::ProfileEditor(TQWidget *tqparent, const char *name)
- :ProfileEditorBase(tqparent, name)
+ProfileEditor::ProfileEditor(TQWidget *parent, const char *name)
+ :ProfileEditorBase(parent, name)
{
refresh();
}
@@ -258,7 +258,7 @@ void ProfileEditor::removeProfile()
if (profile->remove())
{
TQListViewItem *item = profilesList->currentItem();
- profilesList->setCurrentItem(item->tqparent());
+ profilesList->setCurrentItem(item->parent());
profile->detachFromParent();
delete profile;
delete item;
diff --git a/src/profileengine/editor/profileeditor.h b/src/profileengine/editor/profileeditor.h
index aae785b1..b3c97215 100644
--- a/src/profileengine/editor/profileeditor.h
+++ b/src/profileengine/editor/profileeditor.h
@@ -31,7 +31,7 @@ class ProfileEditor : public ProfileEditorBase {
Q_OBJECT
TQ_OBJECT
public:
- ProfileEditor(TQWidget *tqparent = 0, const char *name = 0);
+ ProfileEditor(TQWidget *parent = 0, const char *name = 0);
public slots:
virtual void removeProperty();
diff --git a/src/profileengine/lib/profile.cpp b/src/profileengine/lib/profile.cpp
index a5ad5803..02fe1216 100644
--- a/src/profileengine/lib/profile.cpp
+++ b/src/profileengine/lib/profile.cpp
@@ -26,8 +26,8 @@
#include <kconfig.h>
#include <kio/netaccess.h>
-Profile::Profile(Profile *tqparent, const TQString &name)
- :m_parent(tqparent), m_name(name)
+Profile::Profile(Profile *parent, const TQString &name)
+ :m_parent(parent), m_name(name)
{
if (m_parent)
m_parent->addChildProfile(this);
@@ -49,8 +49,8 @@ Profile::Profile(Profile *tqparent, const TQString &name)
m_explicitDisable = config.readListEntry("List");
}
-Profile::Profile(Profile *tqparent, const TQString &name, const TQString &genericName, const TQString &description)
- :m_parent(tqparent), m_name(name), m_genericName(genericName), m_description(description)
+Profile::Profile(Profile *parent, const TQString &name, const TQString &genericName, const TQString &description)
+ :m_parent(parent), m_name(name), m_genericName(genericName), m_description(description)
{
if (m_parent)
m_parent->addChildProfile(this);
diff --git a/src/profileengine/lib/profile.h b/src/profileengine/lib/profile.h
index 30e00517..c6829245 100644
--- a/src/profileengine/lib/profile.h
+++ b/src/profileengine/lib/profile.h
@@ -45,12 +45,12 @@ public:
ExplicitDisable /**<A list of explicitly disabled plugins (names).*/
};
- Profile(Profile *tqparent, const TQString &name);
- Profile(Profile *tqparent, const TQString &name, const TQString &genericName, const TQString &description);
+ Profile(Profile *parent, const TQString &name);
+ Profile(Profile *parent, const TQString &name, const TQString &genericName, const TQString &description);
~Profile();
TQValueList<Profile*> tqchildren() const { return m_tqchildren; }
- Profile *tqparent() const { return m_parent; }
+ Profile *parent() const { return m_parent; }
void save();
bool remove();
diff --git a/src/profileengine/lib/profileengine.h b/src/profileengine/lib/profileengine.h
index 9184df62..90908afe 100644
--- a/src/profileengine/lib/profileengine.h
+++ b/src/profileengine/lib/profileengine.h
@@ -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 tqparent profile
+ When iterating the tree, the result of operation applied to the parent 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 *tqparent, Profile *profile)
+ ProfileItem * operator() (ProfileItem *parent, Profile *profile)
{
- tqparent->setOpen(true);
- return new ProfileItem(tqparent, profile);
+ parent->setOpen(true);
+ return new ProfileItem(parent, profile);
}
};
class ProfileItem: public KListViewItem {
public:
- ProfileItem(KListView *tqparent, Profile *profile)
- :KListViewItem(tqparent), m_profile(profile)
+ ProfileItem(KListView *parent, Profile *profile)
+ :KListViewItem(parent), m_profile(profile)
{
setText(0, profile->genericName());
setText(1, profile->description());
}
- ProfileItem(KListViewItem *tqparent, Profile *profile)
- : KListViewItem(tqparent), m_profile(profile)
+ ProfileItem(KListViewItem *parent, Profile *profile)
+ : KListViewItem(parent), m_profile(profile)
{
setText(0, profile->genericName());
setText(1, profile->description());