summaryrefslogtreecommitdiffstats
path: root/kpilot/kpilot/listCat.cc
diff options
context:
space:
mode:
Diffstat (limited to 'kpilot/kpilot/listCat.cc')
-rw-r--r--kpilot/kpilot/listCat.cc66
1 files changed, 33 insertions, 33 deletions
diff --git a/kpilot/kpilot/listCat.cc b/kpilot/kpilot/listCat.cc
index 281bfe00..6faa3efa 100644
--- a/kpilot/kpilot/listCat.cc
+++ b/kpilot/kpilot/listCat.cc
@@ -30,13 +30,13 @@
#include "options.h"
-#include <qpainter.h>
+#include <tqpainter.h>
#include <klocale.h>
#include "listCat.moc"
-ListCategorizer::ListCategorizer(QWidget * parent,
+ListCategorizer::ListCategorizer(TQWidget * parent,
const char *name) :
KListView(parent, name),
fStartOpen(false)
@@ -45,9 +45,9 @@ ListCategorizer::ListCategorizer(QWidget * parent,
setupWidget();
}
-ListCategorizer::ListCategorizer(const QStringList & i,
+ListCategorizer::ListCategorizer(const TQStringList & i,
bool startOpen,
- QWidget * parent,
+ TQWidget * parent,
const char *name) :
KListView(parent, name),
fStartOpen(startOpen)
@@ -56,10 +56,10 @@ ListCategorizer::ListCategorizer(const QStringList & i,
addCategories(i);
}
-void ListCategorizer::addCategories(const QStringList & l)
+void ListCategorizer::addCategories(const TQStringList & l)
{
FUNCTIONSETUP;
- QStringList::ConstIterator i;
+ TQStringList::ConstIterator i;
for (i = l.begin(); i != l.end(); ++i)
{
@@ -67,11 +67,11 @@ void ListCategorizer::addCategories(const QStringList & l)
}
}
-QListViewItem *ListCategorizer::addCategory(const QString & name,
- const QString & desc)
+TQListViewItem *ListCategorizer::addCategory(const TQString & name,
+ const TQString & desc)
{
FUNCTIONSETUP;
- QListViewItem *m = new QListViewItem(this, name, desc);
+ TQListViewItem *m = new TQListViewItem(this, name, desc);
m->setSelectable(false);
m->setOpen(fStartOpen);
@@ -90,12 +90,12 @@ void ListCategorizer::setupWidget()
setRootIsDecorated(true);
}
-/* virtual */ bool ListCategorizer::acceptDrag(QDropEvent * event) const
+/* virtual */ bool ListCategorizer::acceptDrag(TQDropEvent * event) const
{
FUNCTIONSETUP;
if (!(event->source()))
return false;
- QListViewItem *p = itemAt(event->pos());
+ TQListViewItem *p = itemAt(event->pos());
if (!p)
return false;
@@ -103,7 +103,7 @@ void ListCategorizer::setupWidget()
return true;
}
-/* virtual */ void ListCategorizer::contentsDropEvent(QDropEvent * e)
+/* virtual */ void ListCategorizer::contentsDropEvent(TQDropEvent * e)
{
FUNCTIONSETUP;
cleanDropVisualizer();
@@ -112,8 +112,8 @@ void ListCategorizer::setupWidget()
return;
e->accept();
- QListViewItem *p = itemAt(e->pos());
- QListViewItem *selection = currentItem();
+ TQListViewItem *p = itemAt(e->pos());
+ TQListViewItem *selection = currentItem();
if (!p)
{
@@ -121,7 +121,7 @@ void ListCategorizer::setupWidget()
return;
}
- QListViewItem *category = p->parent();
+ TQListViewItem *category = p->parent();
if (!category)
{
@@ -134,7 +134,7 @@ void ListCategorizer::setupWidget()
/* virtual */ void ListCategorizer::startDrag()
{
FUNCTIONSETUP;
- QListViewItem *p = currentItem();
+ TQListViewItem *p = currentItem();
if (!p || !p->parent())
return;
@@ -142,10 +142,10 @@ void ListCategorizer::setupWidget()
KListView::startDrag();
}
-QStringList ListCategorizer::listSiblings(const QListViewItem * p, int column) const
+TQStringList ListCategorizer::listSiblings(const TQListViewItem * p, int column) const
{
FUNCTIONSETUP;
- QStringList l;
+ TQStringList l;
while (p)
{
@@ -156,10 +156,10 @@ QStringList ListCategorizer::listSiblings(const QListViewItem * p, int column) c
return l;
}
-QListViewItem *ListCategorizer::findCategory(const QString & category) const
+TQListViewItem *ListCategorizer::findCategory(const TQString & category) const
{
FUNCTIONSETUP;
- QListViewItem *p = firstChild();
+ TQListViewItem *p = firstChild();
while (p)
{
@@ -171,24 +171,24 @@ QListViewItem *ListCategorizer::findCategory(const QString & category) const
return 0L;
}
-QListViewItem *ListCategorizer::addItem(const QString & category,
- const QString & name, const QString & description)
+TQListViewItem *ListCategorizer::addItem(const TQString & category,
+ const TQString & name, const TQString & description)
{
FUNCTIONSETUP;
- QListViewItem *p = findCategory(category);
+ TQListViewItem *p = findCategory(category);
if (!p)
return 0L;
- return new QListViewItem(p, name, description);
+ return new TQListViewItem(p, name, description);
}
#define RVPAD (4)
-RichListViewItem::RichListViewItem(QListViewItem *p,
- QString l,
+RichListViewItem::RichListViewItem(TQListViewItem *p,
+ TQString l,
int c) :
- QListViewItem(p,l)
+ TQListViewItem(p,l)
{
FUNCTIONSETUP;
@@ -216,7 +216,7 @@ void RichListViewItem::computeHeight(int c)
if (!fIsRich[c]) return;
- QListView *v = listView();
+ TQListView *v = listView();
fRect[c] = v->fontMetrics().boundingRect(v->itemMargin()+RVPAD,0+RVPAD,
v->columnWidth(c)-v->itemMargin()-RVPAD,300,
@@ -229,7 +229,7 @@ void RichListViewItem::computeHeight(int c)
{
FUNCTIONSETUP;
- QListViewItem::setup();
+ TQListViewItem::setup();
int h = height();
@@ -243,8 +243,8 @@ void RichListViewItem::computeHeight(int c)
}
-/* virtual */ void RichListViewItem::paintCell(QPainter *p,
- const QColorGroup &gc,
+/* virtual */ void RichListViewItem::paintCell(TQPainter *p,
+ const TQColorGroup &gc,
int column,
int width,
int alignment)
@@ -253,11 +253,11 @@ void RichListViewItem::computeHeight(int c)
if ((!column) || (!fIsRich[column]))
{
- QListViewItem::paintCell(p,gc,column,width,alignment);
+ TQListViewItem::paintCell(p,gc,column,width,alignment);
return;
}
- QListView *v = listView();
+ TQListView *v = listView();
p->eraseRect(0,0,width,height());
p->setBackgroundColor(gc.background());