summaryrefslogtreecommitdiffstats
path: root/akregator/src/simplenodeselector.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:53:50 +0000
commit7be55ffa061c026e35e2d6a0effe1161ddb0d41f (patch)
tree8474f9b444b2756228600050f07a7ff25de532b2 /akregator/src/simplenodeselector.cpp
parentf587f20a6d09f1729dd0a8c1cd8ee0110aec7451 (diff)
downloadtdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.tar.gz
tdepim-7be55ffa061c026e35e2d6a0effe1161ddb0d41f.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1157655 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'akregator/src/simplenodeselector.cpp')
-rw-r--r--akregator/src/simplenodeselector.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/akregator/src/simplenodeselector.cpp b/akregator/src/simplenodeselector.cpp
index ea6f7974e..5c3272a13 100644
--- a/akregator/src/simplenodeselector.cpp
+++ b/akregator/src/simplenodeselector.cpp
@@ -31,9 +31,9 @@
#include <klistview.h>
#include <klocale.h>
-#include <qlayout.h>
-#include <qmap.h>
-#include <qwidget.h>
+#include <tqlayout.h>
+#include <tqmap.h>
+#include <tqwidget.h>
namespace Akregator
{
@@ -44,13 +44,13 @@ class SelectNodeDialog::SelectNodeDialogPrivate
SimpleNodeSelector* widget;
};
-SelectNodeDialog::SelectNodeDialog(FeedList* feedList, QWidget* parent, char* name) :
+SelectNodeDialog::SelectNodeDialog(FeedList* feedList, TQWidget* parent, char* name) :
KDialogBase(parent, name, true, i18n("Select Feed or Folder"),
KDialogBase::Ok|KDialogBase::Cancel, KDialogBase::Ok, true), d(new SelectNodeDialogPrivate)
{
d->widget = new SimpleNodeSelector(feedList, this);
- connect(d->widget, SIGNAL(signalNodeSelected(TreeNode*)), this, SLOT(slotNodeSelected(TreeNode*)));
+ connect(d->widget, TQT_SIGNAL(signalNodeSelected(TreeNode*)), this, TQT_SLOT(slotNodeSelected(TreeNode*)));
setMainWidget(d->widget);
enableButtonOK(false);
@@ -84,8 +84,8 @@ class SimpleNodeSelector::SimpleNodeSelectorPrivate
KListView* view;
FeedList* list;
NodeVisitor* visitor;
- QMap<TreeNode*,QListViewItem*> nodeToItem;
- QMap<QListViewItem*, TreeNode*> itemToNode;
+ TQMap<TreeNode*,TQListViewItem*> nodeToItem;
+ TQMap<TQListViewItem*, TreeNode*> itemToNode;
};
class SimpleNodeSelector::NodeVisitor : public TreeNodeVisitor
@@ -102,16 +102,16 @@ class SimpleNodeSelector::NodeVisitor : public TreeNodeVisitor
virtual bool visitFolder(Folder* node)
{
visitTreeNode(node);
- QValueList<TreeNode*> children = node->children();
+ TQValueList<TreeNode*> children = node->children();
m_view->d->nodeToItem[node]->setExpandable(true);
- for (QValueList<TreeNode*>::ConstIterator it = children.begin(); it != children.end(); ++it)
+ for (TQValueList<TreeNode*>::ConstIterator it = children.begin(); it != children.end(); ++it)
createItems(*it);
return true;
}
virtual bool visitTreeNode(TreeNode* node)
{
- QListViewItem* pi = node->parent() ? m_view->d->nodeToItem[node->parent()] : 0;
+ TQListViewItem* pi = node->parent() ? m_view->d->nodeToItem[node->parent()] : 0;
KListViewItem* item = 0;
if (pi != 0)
@@ -121,7 +121,7 @@ class SimpleNodeSelector::NodeVisitor : public TreeNodeVisitor
item->setExpandable(false);
m_view->d->nodeToItem.insert(node, item);
m_view->d->itemToNode.insert(item, node);
- connect(node, SIGNAL(signalDestroyed(TreeNode*)), m_view, SLOT(slotNodeDestroyed(TreeNode*)));
+ connect(node, TQT_SIGNAL(signalDestroyed(TreeNode*)), m_view, TQT_SLOT(slotNodeDestroyed(TreeNode*)));
return true;
}
@@ -131,18 +131,18 @@ class SimpleNodeSelector::NodeVisitor : public TreeNodeVisitor
};
-SimpleNodeSelector::SimpleNodeSelector(FeedList* feedList, QWidget* parent, const char* name) : QWidget(parent, name), d(new SimpleNodeSelectorPrivate)
+SimpleNodeSelector::SimpleNodeSelector(FeedList* feedList, TQWidget* parent, const char* name) : TQWidget(parent, name), d(new SimpleNodeSelectorPrivate)
{
d->list = feedList;
- connect(feedList, SIGNAL(signalDestroyed(FeedList*)), this, SLOT(slotFeedListDestroyed(FeedList*)));
+ connect(feedList, TQT_SIGNAL(signalDestroyed(FeedList*)), this, TQT_SLOT(slotFeedListDestroyed(FeedList*)));
d->view = new KListView(this);
d->view->setRootIsDecorated(true);
d->view->addColumn(i18n("Feeds"));
- connect(d->view, SIGNAL(selectionChanged(QListViewItem*)), this, SLOT(slotItemSelected(QListViewItem*)));
+ connect(d->view, TQT_SIGNAL(selectionChanged(TQListViewItem*)), this, TQT_SLOT(slotItemSelected(TQListViewItem*)));
- QGridLayout* layout = new QGridLayout(this, 1, 1);
+ TQGridLayout* layout = new TQGridLayout(this, 1, 1);
layout->addWidget(d->view, 0, 0);
d->visitor = new NodeVisitor(this);
@@ -166,7 +166,7 @@ TreeNode* SimpleNodeSelector::selectedNode() const
void SimpleNodeSelector::slotSelectNode(TreeNode* node)
{
- QListViewItem* item = d->nodeToItem[node];
+ TQListViewItem* item = d->nodeToItem[node];
if (item != 0)
d->view->setSelected(item, true);
}
@@ -178,7 +178,7 @@ void SimpleNodeSelector::slotFeedListDestroyed(FeedList* /*list*/)
d->view->clear();
}
-void SimpleNodeSelector::slotItemSelected(QListViewItem* item)
+void SimpleNodeSelector::slotItemSelected(TQListViewItem* item)
{
emit signalNodeSelected(d->itemToNode[item]);
}
@@ -187,7 +187,7 @@ void SimpleNodeSelector::slotNodeDestroyed(TreeNode* node)
{
if (d->nodeToItem.contains(node))
{
- QListViewItem* item = d->nodeToItem[node];
+ TQListViewItem* item = d->nodeToItem[node];
d->nodeToItem.remove(node);
d->itemToNode.remove(item);
delete item;