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.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/profileengine/editor/profileeditor.cpp b/src/profileengine/editor/profileeditor.cpp
index 4e0a33ab..903403de 100644
--- a/src/profileengine/editor/profileeditor.cpp
+++ b/src/profileengine/editor/profileeditor.cpp
@@ -18,10 +18,10 @@
***************************************************************************/
#include "profileeditor.h"
-#include <qlayout.h>
+#include <tqlayout.h>
#include <klineedit.h>
-#include <qtextedit.h>
-#include <qpalette.h>
+#include <tqtextedit.h>
+#include <tqpalette.h>
#include <kdebug.h>
#include <kpushbutton.h>
@@ -62,18 +62,18 @@ private:
class EDListItem: public KListViewItem{
public:
- EDListItem(KListView *parent, const QString &text, bool derived)
+ EDListItem(KListView *parent, const TQString &text, bool derived)
: KListViewItem(parent, text), m_derived(derived)
{
}
bool isDerived() const { return m_derived; }
- virtual void paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int alignment)
+ virtual void paintCell(TQPainter *p, const TQColorGroup &cg, int column, int width, int alignment)
{
- QColorGroup cgNew = cg;
+ TQColorGroup cgNew = cg;
if (m_derived)
- cgNew.setColor(QColorGroup::Text, KGlobalSettings::inactiveTextColor());
+ cgNew.setColor(TQColorGroup::Text, KGlobalSettings::inactiveTextColor());
KListViewItem::paintCell(p, cgNew, column, width, alignment);
}
@@ -92,7 +92,7 @@ public:
};
-ProfileEditor::ProfileEditor(QWidget *parent, const char *name)
+ProfileEditor::ProfileEditor(TQWidget *parent, const char *name)
:ProfileEditorBase(parent, name)
{
refresh();
@@ -115,12 +115,12 @@ void ProfileEditor::refresh()
void ProfileEditor::refreshPropertyCombo()
{
- KTrader::OfferList list = KTrader::self()->query(QString::fromLatin1("KDevelop/Plugin"));
- QStringList props;
+ KTrader::OfferList list = KTrader::self()->query(TQString::fromLatin1("KDevelop/Plugin"));
+ TQStringList props;
for (KTrader::OfferList::const_iterator it = list.constBegin(); it != list.constEnd(); ++it)
{
- QStringList currProps = (*it)->property("X-KDevelop-Properties").toStringList();
- for (QStringList::const_iterator p = currProps.constBegin();
+ TQStringList currProps = (*it)->property("X-KDevelop-Properties").toStringList();
+ for (TQStringList::const_iterator p = currProps.constBegin();
p != currProps.constEnd(); ++p)
if (!props.contains(*p))
props.append(*p);
@@ -152,7 +152,7 @@ void ProfileEditor::refreshAvailableList()
new KListViewItem(allProject, (*it)->desktopEntryName(), (*it)->genericName());
}
-void ProfileEditor::profileExecuted(QListViewItem *item)
+void ProfileEditor::profileExecuted(TQListViewItem *item)
{
if (!item || item->text(0) == "KDevelop")
removeProfileButton->setEnabled(false);
@@ -224,7 +224,7 @@ void ProfileEditor::fillPluginsList(Profile *profile)
(*it)->property("X-KDevelop-Properties").toStringList().join(", "));
}
-void ProfileEditor::propertyExecuted(QListBoxItem *item)
+void ProfileEditor::propertyExecuted(TQListBoxItem *item)
{
removePropertyButton->setEnabled(item != 0);
}
@@ -236,10 +236,10 @@ void ProfileEditor::addProfile()
KDialogBase dlg(KDialogBase::Plain, i18n("Add Profile"), KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok);
dlg.plainPage()->setMargin(0);
- (new QVBoxLayout(dlg.plainPage(), 0, 0))->setAutoAdd(true);
+ (new TQVBoxLayout(dlg.plainPage(), 0, 0))->setAutoAdd(true);
AddProfileWidget *prof = new AddProfileWidget(dlg.plainPage());
prof->nameEdit->setFocus();
- if (dlg.exec() == QDialog::Accepted)
+ if (dlg.exec() == TQDialog::Accepted)
{
Profile *profile = new Profile(currentProfile(), prof->nameEdit->text(),
prof->genericNameEdit->text(),
@@ -257,7 +257,7 @@ void ProfileEditor::removeProfile()
Profile *profile = currentProfile();
if (profile->remove())
{
- QListViewItem *item = profilesList->currentItem();
+ TQListViewItem *item = profilesList->currentItem();
profilesList->setCurrentItem(item->parent());
profile->detachFromParent();
delete profile;
@@ -309,7 +309,7 @@ void ProfileEditor::addEnabled()
{
if (!allList->currentItem() && allEdit->text().isEmpty())
return;
- QString text;
+ TQString text;
if (!allEdit->text().isEmpty())
{
text = allEdit->text();
@@ -355,7 +355,7 @@ void ProfileEditor::addDisabled()
{
if (!allList->currentItem() && allEdit->text().isEmpty())
return;
- QString text;
+ TQString text;
if (!allEdit->text().isEmpty())
{
text = allEdit->text();