summaryrefslogtreecommitdiffstats
path: root/akregator/src/nodelist.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'akregator/src/nodelist.cpp')
-rw-r--r--akregator/src/nodelist.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/akregator/src/nodelist.cpp b/akregator/src/nodelist.cpp
index c59cb5c11..952428409 100644
--- a/akregator/src/nodelist.cpp
+++ b/akregator/src/nodelist.cpp
@@ -29,19 +29,19 @@
#include <kapplication.h>
-#include <qmap.h>
-#include <qstring.h>
-#include <qvaluelist.h>
+#include <tqmap.h>
+#include <tqstring.h>
+#include <tqvaluelist.h>
namespace Akregator {
class NodeList::NodeListPrivate
{
public:
- QValueList<TreeNode*> flatList;
+ TQValueList<TreeNode*> flatList;
Folder* rootNode;
- QString title;
- QMap<int, TreeNode*> idMap;
+ TQString title;
+ TQMap<int, TreeNode*> idMap;
AddNodeVisitor* addNodeVisitor;
RemoveNodeVisitor* removeNodeVisitor;
};
@@ -60,15 +60,15 @@ class NodeList::AddNodeVisitor : public TreeNodeVisitor
m_list->d->idMap[node->id()] = node;
m_list->d->flatList.append(node);
- connect(node, SIGNAL(signalDestroyed(TreeNode*)), m_list, SLOT(slotNodeDestroyed(TreeNode*) ));
+ connect(node, TQT_SIGNAL(signalDestroyed(TreeNode*)), m_list, TQT_SLOT(slotNodeDestroyed(TreeNode*) ));
m_list->signalNodeAdded(node); // emit
return true;
}
virtual bool visitFolder(Folder* node)
{
- connect(node, SIGNAL(signalChildAdded(TreeNode*)), m_list, SLOT(slotNodeAdded(TreeNode*) ));
- connect(node, SIGNAL(signalChildRemoved(Folder*, TreeNode*)), m_list, SLOT(slotNodeRemoved(Folder*, TreeNode*) ));
+ connect(node, TQT_SIGNAL(signalChildAdded(TreeNode*)), m_list, TQT_SLOT(slotNodeAdded(TreeNode*) ));
+ connect(node, TQT_SIGNAL(signalChildRemoved(Folder*, TreeNode*)), m_list, TQT_SLOT(slotNodeRemoved(Folder*, TreeNode*) ));
visitTreeNode(node);
@@ -99,7 +99,7 @@ class NodeList::RemoveNodeVisitor : public TreeNodeVisitor
m_list->d->idMap.remove(node->id());
m_list->d->flatList.remove(node);
- disconnect(node, SIGNAL(signalDestroyed(TreeNode*)), m_list, SLOT(slotNodeDestroyed(TreeNode*) ));
+ disconnect(node, TQT_SIGNAL(signalDestroyed(TreeNode*)), m_list, TQT_SLOT(slotNodeDestroyed(TreeNode*) ));
m_list->signalNodeRemoved(node); // emit signal
return true;
@@ -108,8 +108,8 @@ class NodeList::RemoveNodeVisitor : public TreeNodeVisitor
virtual bool visitFolder(Folder* node)
{
- disconnect(node, SIGNAL(signalChildAdded(TreeNode*)), m_list, SLOT(slotNodeAdded(TreeNode*) ));
- disconnect(node, SIGNAL(signalChildRemoved(Folder*, TreeNode*)), m_list, SLOT(slotNodeRemoved(Folder*, TreeNode*) ));
+ disconnect(node, TQT_SIGNAL(signalChildAdded(TreeNode*)), m_list, TQT_SLOT(slotNodeAdded(TreeNode*) ));
+ disconnect(node, TQT_SIGNAL(signalChildRemoved(Folder*, TreeNode*)), m_list, TQT_SLOT(slotNodeRemoved(Folder*, TreeNode*) ));
visitTreeNode(node);
return true;
@@ -118,7 +118,7 @@ class NodeList::RemoveNodeVisitor : public TreeNodeVisitor
NodeList* m_list;
};
-NodeList::NodeList(QObject *parent, const char *name) : d(new NodeListPrivate)
+NodeList::NodeList(TQObject *parent, const char *name) : d(new NodeListPrivate)
{
d->rootNode = 0;
d->addNodeVisitor = new AddNodeVisitor(this);
@@ -126,7 +126,7 @@ NodeList::NodeList(QObject *parent, const char *name) : d(new NodeListPrivate)
}
-const QString& NodeList::title() const
+const TQString& NodeList::title() const
{
return d->title;
}
@@ -136,7 +136,7 @@ TreeNode* NodeList::findByID(int id) const
return d->idMap[id];
}
-void NodeList::setTitle(const QString& title)
+void NodeList::setTitle(const TQString& title)
{
d->title = title;
}
@@ -146,7 +146,7 @@ Folder* NodeList::rootNode() const
return d->rootNode;
}
-const QValueList<TreeNode*>& NodeList::asFlatList() const
+const TQValueList<TreeNode*>& NodeList::asFlatList() const
{
return d->flatList;
}
@@ -156,7 +156,7 @@ bool NodeList::isEmpty() const
return d->rootNode->firstChild() == 0;
}
-QValueList<TreeNode*>* NodeList::flatList() const
+TQValueList<TreeNode*>* NodeList::flatList() const
{
return &(d->flatList);
}
@@ -165,13 +165,13 @@ void NodeList::clear()
{
Q_ASSERT(rootNode());
- QValueList<TreeNode*> children = rootNode()->children();
+ TQValueList<TreeNode*> children = rootNode()->children();
- for (QValueList<TreeNode*>::ConstIterator it = children.begin(); it != children.end(); ++it)
+ for (TQValueList<TreeNode*>::ConstIterator it = children.begin(); it != children.end(); ++it)
delete *it; // emits signal "emitSignalDestroyed"
}
-QMap<int, TreeNode*>* NodeList::idMap() const
+TQMap<int, TreeNode*>* NodeList::idMap() const
{
return &(d->idMap);
}
@@ -184,8 +184,8 @@ void NodeList::setRootNode(Folder* folder)
if (d->rootNode)
{
d->rootNode->setOpen(true);
- connect(d->rootNode, SIGNAL(signalChildAdded(TreeNode*)), this, SLOT(slotNodeAdded(TreeNode*)));
- connect(d->rootNode, SIGNAL(signalChildRemoved(Folder*, TreeNode*)), this, SLOT(slotNodeRemoved(Folder*, TreeNode*)));
+ connect(d->rootNode, TQT_SIGNAL(signalChildAdded(TreeNode*)), this, TQT_SLOT(slotNodeAdded(TreeNode*)));
+ connect(d->rootNode, TQT_SIGNAL(signalChildRemoved(Folder*, TreeNode*)), this, TQT_SLOT(slotNodeRemoved(Folder*, TreeNode*)));
}
}