summaryrefslogtreecommitdiffstats
path: root/src/profileengine/editor
diff options
context:
space:
mode:
Diffstat (limited to 'src/profileengine/editor')
-rw-r--r--src/profileengine/editor/addprofilewidget.ui24
-rw-r--r--src/profileengine/editor/profileeditor.cpp44
-rw-r--r--src/profileengine/editor/profileeditor.h3
-rw-r--r--src/profileengine/editor/profileeditorbase.ui86
4 files changed, 79 insertions, 78 deletions
diff --git a/src/profileengine/editor/addprofilewidget.ui b/src/profileengine/editor/addprofilewidget.ui
index 56a46f1d..dccb234e 100644
--- a/src/profileengine/editor/addprofilewidget.ui
+++ b/src/profileengine/editor/addprofilewidget.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>AddProfileWidget</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>AddProfileWidget</cstring>
</property>
@@ -19,9 +19,9 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout6</cstring>
+ <cstring>tqlayout6</cstring>
</property>
<vbox>
<property name="name">
@@ -33,7 +33,7 @@
<property name="spacing">
<number>0</number>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -51,9 +51,9 @@
</widget>
</vbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout7</cstring>
+ <cstring>tqlayout7</cstring>
</property>
<vbox>
<property name="name">
@@ -65,7 +65,7 @@
<property name="spacing">
<number>0</number>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -83,9 +83,9 @@
</widget>
</vbox>
</widget>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout8</cstring>
+ <cstring>tqlayout8</cstring>
</property>
<vbox>
<property name="name">
@@ -97,7 +97,7 @@
<property name="spacing">
<number>0</number>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel3</cstring>
</property>
@@ -108,7 +108,7 @@
<cstring>descriptionEdit</cstring>
</property>
</widget>
- <widget class="QTextEdit">
+ <widget class="TQTextEdit">
<property name="name">
<cstring>descriptionEdit</cstring>
</property>
@@ -117,5 +117,5 @@
</widget>
</vbox>
</widget>
-<layoutdefaults spacing="6" margin="11"/>
+<tqlayoutdefaults spacing="6" margin="11"/>
</UI>
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"));
diff --git a/src/profileengine/editor/profileeditor.h b/src/profileengine/editor/profileeditor.h
index 182195f4..aae785b1 100644
--- a/src/profileengine/editor/profileeditor.h
+++ b/src/profileengine/editor/profileeditor.h
@@ -29,8 +29,9 @@ class KListViewItem;
class ProfileEditor : public ProfileEditorBase {
Q_OBJECT
+ TQ_OBJECT
public:
- ProfileEditor(TQWidget *parent = 0, const char *name = 0);
+ ProfileEditor(TQWidget *tqparent = 0, const char *name = 0);
public slots:
virtual void removeProperty();
diff --git a/src/profileengine/editor/profileeditorbase.ui b/src/profileengine/editor/profileeditorbase.ui
index e91fd13d..094eeffd 100644
--- a/src/profileengine/editor/profileeditorbase.ui
+++ b/src/profileengine/editor/profileeditorbase.ui
@@ -1,6 +1,6 @@
<!DOCTYPE UI><UI version="3.2" stdsetdef="1">
<class>ProfileEditorBase</class>
-<widget class="QWidget">
+<widget class="TQWidget">
<property name="name">
<cstring>ProfileEditorBase</cstring>
</property>
@@ -19,18 +19,18 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QSplitter" row="0" column="0">
+ <widget class="TQSplitter" row="0" column="0">
<property name="name">
<cstring>splitter2</cstring>
</property>
<property name="orientation">
<enum>Vertical</enum>
</property>
- <widget class="QWidgetStack">
+ <widget class="TQWidgetStack">
<property name="name">
<cstring>widgetStack1</cstring>
</property>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>WStackPage</cstring>
</property>
@@ -47,9 +47,9 @@
<property name="spacing">
<number>0</number>
</property>
- <widget class="QLayoutWidget">
+ <widget class="TQLayoutWidget">
<property name="name">
- <cstring>layout11</cstring>
+ <cstring>tqlayout11</cstring>
</property>
<grid>
<property name="name">
@@ -73,7 +73,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>142</height>
@@ -137,11 +137,11 @@
</vbox>
</widget>
</widget>
- <widget class="QTabWidget">
+ <widget class="TQTabWidget">
<property name="name">
<cstring>tabWidget2</cstring>
</property>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -190,9 +190,9 @@
<string>Remove</string>
</property>
</widget>
- <widget class="QLayoutWidget" row="0" column="0" rowspan="2" colspan="1">
+ <widget class="TQLayoutWidget" row="0" column="0" rowspan="2" colspan="1">
<property name="name">
- <cstring>layout7</cstring>
+ <cstring>tqlayout7</cstring>
</property>
<vbox>
<property name="name">
@@ -204,7 +204,7 @@
<property name="spacing">
<number>0</number>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1</cstring>
</property>
@@ -219,9 +219,9 @@
</widget>
</vbox>
</widget>
- <widget class="QLayoutWidget" row="0" column="1" rowspan="1" colspan="3">
+ <widget class="TQLayoutWidget" row="0" column="1" rowspan="1" colspan="3">
<property name="name">
- <cstring>layout8</cstring>
+ <cstring>tqlayout8</cstring>
</property>
<vbox>
<property name="name">
@@ -233,7 +233,7 @@
<property name="spacing">
<number>0</number>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel1_2</cstring>
</property>
@@ -250,7 +250,7 @@
</widget>
</grid>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>tab</cstring>
</property>
@@ -261,9 +261,9 @@
<property name="name">
<cstring>unnamed</cstring>
</property>
- <widget class="QLayoutWidget" row="0" column="2" rowspan="4" colspan="1">
+ <widget class="TQLayoutWidget" row="0" column="2" rowspan="4" colspan="1">
<property name="name">
- <cstring>layout5</cstring>
+ <cstring>tqlayout5</cstring>
</property>
<vbox>
<property name="name">
@@ -275,7 +275,7 @@
<property name="spacing">
<number>0</number>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel2</cstring>
</property>
@@ -301,9 +301,9 @@
</widget>
</vbox>
</widget>
- <widget class="QLayoutWidget" row="4" column="2" rowspan="4" colspan="1">
+ <widget class="TQLayoutWidget" row="4" column="2" rowspan="4" colspan="1">
<property name="name">
- <cstring>layout6</cstring>
+ <cstring>tqlayout6</cstring>
</property>
<vbox>
<property name="name">
@@ -315,7 +315,7 @@
<property name="spacing">
<number>0</number>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel2_2</cstring>
</property>
@@ -359,7 +359,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>16</height>
@@ -376,7 +376,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>16</height>
@@ -401,16 +401,16 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>16</height>
</size>
</property>
</spacer>
- <widget class="QLayoutWidget" row="0" column="0" rowspan="8" colspan="1">
+ <widget class="TQLayoutWidget" row="0" column="0" rowspan="8" colspan="1">
<property name="name">
- <cstring>layout10</cstring>
+ <cstring>tqlayout10</cstring>
</property>
<vbox>
<property name="name">
@@ -422,7 +422,7 @@
<property name="spacing">
<number>0</number>
</property>
- <widget class="QLabel">
+ <widget class="TQLabel">
<property name="name">
<cstring>textLabel2_3</cstring>
</property>
@@ -474,7 +474,7 @@
<property name="sizeType">
<enum>Expanding</enum>
</property>
- <property name="sizeHint">
+ <property name="tqsizeHint">
<size>
<width>20</width>
<height>16</height>
@@ -499,7 +499,7 @@
</widget>
</grid>
</widget>
- <widget class="QWidget">
+ <widget class="TQWidget">
<property name="name">
<cstring>TabPage</cstring>
</property>
@@ -560,15 +560,15 @@
<connections>
<connection>
<sender>profilesList</sender>
- <signal>currentChanged(QListViewItem*)</signal>
+ <signal>currentChanged(TQListViewItem*)</signal>
<receiver>ProfileEditorBase</receiver>
- <slot>profileExecuted(QListViewItem*)</slot>
+ <slot>profileExecuted(TQListViewItem*)</slot>
</connection>
<connection>
<sender>ownPropertiesBox</sender>
- <signal>currentChanged(QListBoxItem*)</signal>
+ <signal>currentChanged(TQListBoxItem*)</signal>
<receiver>ProfileEditorBase</receiver>
- <slot>propertyExecuted(QListBoxItem*)</slot>
+ <slot>propertyExecuted(TQListBoxItem*)</slot>
</connection>
<connection>
<sender>addProfileButton</sender>
@@ -596,15 +596,15 @@
</connection>
<connection>
<sender>profilesList</sender>
- <signal>executed(QListViewItem*)</signal>
+ <signal>executed(TQListViewItem*)</signal>
<receiver>ProfileEditorBase</receiver>
- <slot>profileExecuted(QListViewItem*)</slot>
+ <slot>profileExecuted(TQListViewItem*)</slot>
</connection>
<connection>
<sender>profilesList</sender>
- <signal>selectionChanged(QListViewItem*)</signal>
+ <signal>selectionChanged(TQListViewItem*)</signal>
<receiver>ProfileEditorBase</receiver>
- <slot>profileExecuted(QListViewItem*)</slot>
+ <slot>profileExecuted(TQListViewItem*)</slot>
</connection>
<connection>
<sender>addEnabledButton</sender>
@@ -645,9 +645,9 @@
<tabstop>disabledList</tabstop>
<tabstop>pluginsView</tabstop>
</tabstops>
-<slots>
- <slot>profileExecuted(QListViewItem *item)</slot>
- <slot>propertyExecuted(QListBoxItem *item)</slot>
+<Q_SLOTS>
+ <slot>profileExecuted(TQListViewItem *item)</slot>
+ <slot>propertyExecuted(TQListBoxItem *item)</slot>
<slot>addProfile()</slot>
<slot>removeProfile()</slot>
<slot>addProperty()</slot>
@@ -656,8 +656,8 @@
<slot>delEnabled()</slot>
<slot>addDisabled()</slot>
<slot>delDisabled()</slot>
-</slots>
-<layoutdefaults spacing="6" margin="11"/>
+</Q_SLOTS>
+<tqlayoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>kpushbutton.h</includehint>
<includehint>klistview.h</includehint>