summaryrefslogtreecommitdiffstats
path: root/src/profileengine/editor/profileeditor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/profileengine/editor/profileeditor.cpp')
-rw-r--r--src/profileengine/editor/profileeditor.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/profileengine/editor/profileeditor.cpp b/src/profileengine/editor/profileeditor.cpp
index 903403de..0e3fb5d4 100644
--- a/src/profileengine/editor/profileeditor.cpp
+++ b/src/profileengine/editor/profileeditor.cpp
@@ -40,15 +40,15 @@
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());
@@ -62,19 +62,19 @@ private:
class EDListItem: public KListViewItem{
public:
- EDListItem(KListView *parent, const TQString &text, bool derived)
- : KListViewItem(parent, text), m_derived(derived)
+ EDListItem(KListView *tqparent, const TQString &text, bool derived)
+ : KListViewItem(tqparent, text), m_derived(derived)
{
}
bool isDerived() const { return m_derived; }
- virtual void paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment)
+ virtual void paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int tqalignment)
{
TQColorGroup cgNew = cg;
if (m_derived)
cgNew.setColor(TQColorGroup::Text, KGlobalSettings::inactiveTextColor());
- KListViewItem::paintCell(p, cgNew, column, width, alignment);
+ KListViewItem::paintCell(p, cgNew, column, width, tqalignment);
}
private:
@@ -84,16 +84,16 @@ private:
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);
}
};
-ProfileEditor::ProfileEditor(TQWidget *parent, const char *name)
- :ProfileEditorBase(parent, name)
+ProfileEditor::ProfileEditor(TQWidget *tqparent, const char *name)
+ :ProfileEditorBase(tqparent, name)
{
refresh();
}
@@ -115,14 +115,14 @@ void ProfileEditor::refresh()
void ProfileEditor::refreshPropertyCombo()
{
- KTrader::OfferList list = KTrader::self()->query(TQString::fromLatin1("KDevelop/Plugin"));
+ KTrader::OfferList list = KTrader::self()->query(TQString::tqfromLatin1("KDevelop/Plugin"));
TQStringList props;
for (KTrader::OfferList::const_iterator it = list.constBegin(); it != list.constEnd(); ++it)
{
TQStringList currProps = (*it)->property("X-KDevelop-Properties").toStringList();
for (TQStringList::const_iterator p = currProps.constBegin();
p != currProps.constEnd(); ++p)
- if (!props.contains(*p))
+ if (!props.tqcontains(*p))
props.append(*p);
}
props.sort();
@@ -258,7 +258,7 @@ void ProfileEditor::removeProfile()
if (profile->remove())
{
TQListViewItem *item = profilesList->currentItem();
- profilesList->setCurrentItem(item->parent());
+ profilesList->setCurrentItem(item->tqparent());
profile->detachFromParent();
delete profile;
delete item;
@@ -271,8 +271,8 @@ void ProfileEditor::removeProfile()
void ProfileEditor::addProperty()
{
if ( (!propertyCombo->currentText().isEmpty()) &&
- (ownPropertiesBox->findItem(propertyCombo->currentText()) == 0) &&
- (derivedPropertiesBox->findItem(propertyCombo->currentText()) == 0) )
+ (ownPropertiesBox->tqfindItem(propertyCombo->currentText()) == 0) &&
+ (derivedPropertiesBox->tqfindItem(propertyCombo->currentText()) == 0) )
{
ownPropertiesBox->insertItem(propertyCombo->currentText());
@@ -322,9 +322,9 @@ void ProfileEditor::addEnabled()
text = allList->currentItem()->text(0);
}
- if (enabledList->findItem(text, 0) != 0)
+ if (enabledList->tqfindItem(text, 0) != 0)
return;
- if (disabledList->findItem(text, 0) != 0)
+ if (disabledList->tqfindItem(text, 0) != 0)
{
KMessageBox::error(this, i18n("This plugin is already contained in the list of disabled plugins."),
i18n("Enable Plugin"));
@@ -368,9 +368,9 @@ void ProfileEditor::addDisabled()
text = allList->currentItem()->text(0);
}
- if (disabledList->findItem(text, 0) != 0)
+ if (disabledList->tqfindItem(text, 0) != 0)
return;
- if (enabledList->findItem(text, 0) != 0)
+ if (enabledList->tqfindItem(text, 0) != 0)
{
KMessageBox::error(this, i18n("This plugin is already contained in the list of enabled plugins."),
i18n("Disable Plugin"));