summaryrefslogtreecommitdiffstats
path: root/akregator/src/feedlistview.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/feedlistview.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/feedlistview.cpp')
-rw-r--r--akregator/src/feedlistview.cpp158
1 files changed, 79 insertions, 79 deletions
diff --git a/akregator/src/feedlistview.cpp b/akregator/src/feedlistview.cpp
index 585e85098..b680c7c58 100644
--- a/akregator/src/feedlistview.cpp
+++ b/akregator/src/feedlistview.cpp
@@ -47,12 +47,12 @@
#include <kstringhandler.h>
#include <kurldrag.h>
-#include <qfont.h>
-#include <qheader.h>
-#include <qpainter.h>
-#include <qptrdict.h>
-#include <qtimer.h>
-#include <qwhatsthis.h>
+#include <tqfont.h>
+#include <tqheader.h>
+#include <tqpainter.h>
+#include <tqptrdict.h>
+#include <tqtimer.h>
+#include <tqwhatsthis.h>
namespace Akregator {
@@ -60,14 +60,14 @@ class NodeListView::NodeListViewPrivate
{
public:
/** used for finding the item belonging to a node */
- QPtrDict<TreeNodeItem> itemDict;
+ TQPtrDict<TreeNodeItem> itemDict;
NodeList* nodeList;
bool showTagFolders;
// Drag and Drop variables
- QListViewItem *parent;
- QListViewItem *afterme;
- QTimer autoopentimer;
+ TQListViewItem *parent;
+ TQListViewItem *afterme;
+ TQTimer autoopentimer;
ConnectNodeVisitor* connectNodeVisitor;
DisconnectNodeVisitor* disconnectNodeVisitor;
CreateItemVisitor* createItemVisitor;
@@ -81,16 +81,16 @@ class NodeListView::ConnectNodeVisitor : public TreeNodeVisitor
virtual bool visitTreeNode(TreeNode* node)
{
- connect(node, SIGNAL(signalDestroyed(TreeNode*)), m_view, SLOT(slotNodeDestroyed(TreeNode*) ));
- connect(node, SIGNAL(signalChanged(TreeNode*)), m_view, SLOT(slotNodeChanged(TreeNode*) ));
+ connect(node, TQT_SIGNAL(signalDestroyed(TreeNode*)), m_view, TQT_SLOT(slotNodeDestroyed(TreeNode*) ));
+ connect(node, TQT_SIGNAL(signalChanged(TreeNode*)), m_view, TQT_SLOT(slotNodeChanged(TreeNode*) ));
return true;
}
virtual bool visitFolder(Folder* node)
{
visitTreeNode(node);
- connect(node, SIGNAL(signalChildAdded(TreeNode*)), m_view, SLOT(slotNodeAdded(TreeNode*) ));
- connect(node, SIGNAL(signalChildRemoved(Folder*, TreeNode*)), m_view, SLOT(slotNodeRemoved(Folder*, TreeNode*) ));
+ connect(node, TQT_SIGNAL(signalChildAdded(TreeNode*)), m_view, TQT_SLOT(slotNodeAdded(TreeNode*) ));
+ connect(node, TQT_SIGNAL(signalChildRemoved(Folder*, TreeNode*)), m_view, TQT_SLOT(slotNodeRemoved(Folder*, TreeNode*) ));
return true;
}
@@ -98,10 +98,10 @@ class NodeListView::ConnectNodeVisitor : public TreeNodeVisitor
{
visitTreeNode(node);
- connect(node, SIGNAL(fetchStarted(Feed*)), m_view, SLOT(slotFeedFetchStarted(Feed*)));
- connect(node, SIGNAL(fetchAborted(Feed*)), m_view, SLOT(slotFeedFetchAborted(Feed*)));
- connect(node, SIGNAL(fetchError(Feed*)), m_view, SLOT(slotFeedFetchError(Feed*)));
- connect(node, SIGNAL(fetched(Feed*)), m_view, SLOT(slotFeedFetchCompleted(Feed*)));
+ connect(node, TQT_SIGNAL(fetchStarted(Feed*)), m_view, TQT_SLOT(slotFeedFetchStarted(Feed*)));
+ connect(node, TQT_SIGNAL(fetchAborted(Feed*)), m_view, TQT_SLOT(slotFeedFetchAborted(Feed*)));
+ connect(node, TQT_SIGNAL(fetchError(Feed*)), m_view, TQT_SLOT(slotFeedFetchError(Feed*)));
+ connect(node, TQT_SIGNAL(fetched(Feed*)), m_view, TQT_SLOT(slotFeedFetchCompleted(Feed*)));
return true;
}
private:
@@ -117,30 +117,30 @@ class NodeListView::DisconnectNodeVisitor : public TreeNodeVisitor
virtual bool visitTagNode(TagNode* node)
{
- disconnect(node, SIGNAL(signalDestroyed(TreeNode*)), m_view, SLOT(slotNodeDestroyed(TreeNode*) ));
- disconnect(node, SIGNAL(signalChanged(TreeNode*)), m_view, SLOT(slotNodeChanged(TreeNode*) ));
+ disconnect(node, TQT_SIGNAL(signalDestroyed(TreeNode*)), m_view, TQT_SLOT(slotNodeDestroyed(TreeNode*) ));
+ disconnect(node, TQT_SIGNAL(signalChanged(TreeNode*)), m_view, TQT_SLOT(slotNodeChanged(TreeNode*) ));
return true;
}
virtual bool visitFolder(Folder* node)
{
- disconnect(node, SIGNAL(signalChildAdded(TreeNode*)), m_view, SLOT(slotNodeAdded(TreeNode*) ));
- disconnect(node, SIGNAL(signalChildRemoved(Folder*, TreeNode*)), m_view, SLOT(slotNodeRemoved(Folder*, TreeNode*) ));
+ disconnect(node, TQT_SIGNAL(signalChildAdded(TreeNode*)), m_view, TQT_SLOT(slotNodeAdded(TreeNode*) ));
+ disconnect(node, TQT_SIGNAL(signalChildRemoved(Folder*, TreeNode*)), m_view, TQT_SLOT(slotNodeRemoved(Folder*, TreeNode*) ));
- disconnect(node, SIGNAL(signalDestroyed(TreeNode*)), m_view, SLOT(slotNodeDestroyed(TreeNode*) ));
- disconnect(node, SIGNAL(signalChanged(TreeNode*)), m_view, SLOT(slotNodeChanged(TreeNode*) ));
+ disconnect(node, TQT_SIGNAL(signalDestroyed(TreeNode*)), m_view, TQT_SLOT(slotNodeDestroyed(TreeNode*) ));
+ disconnect(node, TQT_SIGNAL(signalChanged(TreeNode*)), m_view, TQT_SLOT(slotNodeChanged(TreeNode*) ));
return true;
}
virtual bool visitFeed(Feed* node)
{
- disconnect(node, SIGNAL(signalDestroyed(TreeNode*)), m_view, SLOT(slotNodeDestroyed(TreeNode*) ));
- disconnect(node, SIGNAL(signalChanged(TreeNode*)), m_view, SLOT(slotNodeChanged(TreeNode*) ));
- disconnect(node, SIGNAL(fetchStarted(Feed*)), m_view, SLOT(slotFeedFetchStarted(Feed*)));
- disconnect(node, SIGNAL(fetchAborted(Feed*)), m_view, SLOT(slotFeedFetchAborted(Feed*)));
- disconnect(node, SIGNAL(fetchError(Feed*)), m_view, SLOT(slotFeedFetchError(Feed*)));
- disconnect(node, SIGNAL(fetched(Feed*)), m_view, SLOT(slotFeedFetchCompleted(Feed*)));
+ disconnect(node, TQT_SIGNAL(signalDestroyed(TreeNode*)), m_view, TQT_SLOT(slotNodeDestroyed(TreeNode*) ));
+ disconnect(node, TQT_SIGNAL(signalChanged(TreeNode*)), m_view, TQT_SLOT(slotNodeChanged(TreeNode*) ));
+ disconnect(node, TQT_SIGNAL(fetchStarted(Feed*)), m_view, TQT_SLOT(slotFeedFetchStarted(Feed*)));
+ disconnect(node, TQT_SIGNAL(fetchAborted(Feed*)), m_view, TQT_SLOT(slotFeedFetchAborted(Feed*)));
+ disconnect(node, TQT_SIGNAL(fetchError(Feed*)), m_view, TQT_SLOT(slotFeedFetchError(Feed*)));
+ disconnect(node, TQT_SIGNAL(fetched(Feed*)), m_view, TQT_SLOT(slotFeedFetchCompleted(Feed*)));
return true;
}
private:
@@ -180,8 +180,8 @@ class NodeListView::DeleteItemVisitor : public TreeNodeVisitor
virtual bool visitFolder(Folder* node)
{
// delete child items recursively before deleting parent
- QValueList<TreeNode*> children = node->children();
- for (QValueList<TreeNode*>::ConstIterator it = children.begin(); it != children.end(); ++it )
+ TQValueList<TreeNode*> children = node->children();
+ for (TQValueList<TreeNode*>::ConstIterator it = children.begin(); it != children.end(); ++it )
visit(*it);
visitTreeNode(node);
@@ -267,10 +267,10 @@ class NodeListView::CreateItemVisitor : public TreeNodeVisitor
}
m_view->d->itemDict.insert(node, item);
- QValueList<TreeNode*> children = node->children();
+ TQValueList<TreeNode*> children = node->children();
// add children recursively
- for (QValueList<TreeNode*>::ConstIterator it = children.begin(); it != children.end(); ++it )
+ for (TQValueList<TreeNode*>::ConstIterator it = children.begin(); it != children.end(); ++it )
visit(*it);
m_view->connectToNode(node);
@@ -306,8 +306,8 @@ class NodeListView::CreateItemVisitor : public TreeNodeVisitor
m_view->d->itemDict.insert(node, item);
// add children recursively
- QValueList<TreeNode*> children = node->children();
- for (QValueList<TreeNode*>::ConstIterator it = children.begin(); it != children.end(); ++it )
+ TQValueList<TreeNode*> children = node->children();
+ for (TQValueList<TreeNode*>::ConstIterator it = children.begin(); it != children.end(); ++it )
visit(*it);
m_view->connectToNode(node);
@@ -352,7 +352,7 @@ class NodeListView::CreateItemVisitor : public TreeNodeVisitor
NodeListView* m_view;
};
-NodeListView::NodeListView( QWidget *parent, const char *name)
+NodeListView::NodeListView( TQWidget *parent, const char *name)
: KListView(parent, name), d(new NodeListViewPrivate)
{
d->showTagFolders = true;
@@ -377,15 +377,15 @@ NodeListView::NodeListView( QWidget *parent, const char *name)
setAcceptDrops(true);
setItemsMovable(true);
- connect( this, SIGNAL(dropped(QDropEvent*, QListViewItem*)), this, SLOT(slotDropped(QDropEvent*, QListViewItem*)) );
- connect( this, SIGNAL(selectionChanged(QListViewItem*)), this, SLOT(slotSelectionChanged(QListViewItem*)) );
- connect( this, SIGNAL(itemRenamed(QListViewItem*, int, const QString&)), this, SLOT(slotItemRenamed(QListViewItem*, int, const QString&)) );
- connect( this, SIGNAL(contextMenu(KListView*, QListViewItem*, const QPoint&)), this, SLOT(slotContextMenu(KListView*, QListViewItem*, const QPoint&)) );
- connect( &(d->autoopentimer), SIGNAL( timeout() ), this, SLOT( openFolder() ) );
+ connect( this, TQT_SIGNAL(dropped(TQDropEvent*, TQListViewItem*)), this, TQT_SLOT(slotDropped(TQDropEvent*, TQListViewItem*)) );
+ connect( this, TQT_SIGNAL(selectionChanged(TQListViewItem*)), this, TQT_SLOT(slotSelectionChanged(TQListViewItem*)) );
+ connect( this, TQT_SIGNAL(itemRenamed(TQListViewItem*, int, const TQString&)), this, TQT_SLOT(slotItemRenamed(TQListViewItem*, int, const TQString&)) );
+ connect( this, TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint&)), this, TQT_SLOT(slotContextMenu(KListView*, TQListViewItem*, const TQPoint&)) );
+ connect( &(d->autoopentimer), TQT_SIGNAL( timeout() ), this, TQT_SLOT( openFolder() ) );
clear();
- QWhatsThis::add(this, i18n("<h2>Feeds tree</h2>"
+ TQWhatsThis::add(this, i18n("<h2>Feeds tree</h2>"
"Here you can browse tree of feeds. "
"You can also add feeds or feed groups (folders) "
"using right-click menu, or reorganize them using "
@@ -446,7 +446,7 @@ void NodeListView::setSelectedNode(TreeNode* node)
setSelected(item, true);
}
-TreeNode* NodeListView::findNodeByTitle(const QString& title)
+TreeNode* NodeListView::findNodeByTitle(const TQString& title)
{
TreeNodeItem* item = dynamic_cast<TreeNodeItem*>(findItemByTitle(title, 0));
if (!item)
@@ -460,7 +460,7 @@ TreeNodeItem* NodeListView::findNodeItem(TreeNode* node)
return d->itemDict.find(node);
}
-TreeNodeItem* NodeListView::findItemByTitle(const QString& text, int column, ComparisonFlags compare) const
+TreeNodeItem* NodeListView::findItemByTitle(const TQString& text, int column, ComparisonFlags compare) const
{
return dynamic_cast<TreeNodeItem*> (KListView::findItem(text, column, compare));
}
@@ -481,7 +481,7 @@ void NodeListView::startNodeRenaming(TreeNode* node)
void NodeListView::clear()
{
- QPtrDictIterator<TreeNodeItem> it(d->itemDict);
+ TQPtrDictIterator<TreeNodeItem> it(d->itemDict);
for( ; it.current(); ++it )
disconnectFromNode( it.current()->node() );
d->itemDict.clear();
@@ -490,7 +490,7 @@ void NodeListView::clear()
KListView::clear();
}
-void NodeListView::drawContentsOffset( QPainter * p, int ox, int oy,
+void NodeListView::drawContentsOffset( TQPainter * p, int ox, int oy,
int cx, int cy, int cw, int ch )
{
bool oldUpdatesEnabled = isUpdatesEnabled();
@@ -499,7 +499,7 @@ void NodeListView::drawContentsOffset( QPainter * p, int ox, int oy,
setUpdatesEnabled(oldUpdatesEnabled);
}
-void NodeListView::slotDropped( QDropEvent *e, QListViewItem*
+void NodeListView::slotDropped( TQDropEvent *e, TQListViewItem*
/*after*/)
{
d->autoopentimer.stop();
@@ -527,7 +527,7 @@ void NodeListView::slotDropped( QDropEvent *e, QListViewItem*
}
}
-void NodeListView::movableDropEvent(QListViewItem* /*parent*/, QListViewItem* /*afterme*/)
+void NodeListView::movableDropEvent(TQListViewItem* /*parent*/, TQListViewItem* /*afterme*/)
{
d->autoopentimer.stop();
if (d->parent)
@@ -552,13 +552,13 @@ void NodeListView::setShowTagFolders(bool enabled)
d->showTagFolders = enabled;
}
-void NodeListView::contentsDragMoveEvent(QDragMoveEvent* event)
+void NodeListView::contentsDragMoveEvent(TQDragMoveEvent* event)
{
- QPoint vp = contentsToViewport(event->pos());
- QListViewItem *i = itemAt(vp);
+ TQPoint vp = contentsToViewport(event->pos());
+ TQListViewItem *i = itemAt(vp);
- QListViewItem *qiparent;
- QListViewItem *qiafterme;
+ TQListViewItem *qiparent;
+ TQListViewItem *qiafterme;
findDrop( event->pos(), qiparent, qiafterme );
if (event->source() == viewport()) {
@@ -571,11 +571,11 @@ void NodeListView::contentsDragMoveEvent(QDragMoveEvent* event)
}
// prevent dragging nodes from All Feeds to My Tags or vice versa
- QListViewItem* root1 = i;
+ TQListViewItem* root1 = i;
while (root1 && root1->parent())
root1 = root1->parent();
- QListViewItem* root2 = selectedItem();
+ TQListViewItem* root2 = selectedItem();
while (root2 && root2->parent())
root2 = root2->parent();
@@ -587,7 +587,7 @@ void NodeListView::contentsDragMoveEvent(QDragMoveEvent* event)
}
// don't drop node into own subtree
- QListViewItem* p = qiparent;
+ TQListViewItem* p = qiparent;
while (p)
if (p == selectedItem())
{
@@ -616,7 +616,7 @@ void NodeListView::contentsDragMoveEvent(QDragMoveEvent* event)
// {} else
// do we want to move inside the old parent or do we want to move to a new parent
- if (i && (itemAt(vp - QPoint(0,5)) == i && itemAt(vp + QPoint(0,5)) == i))
+ if (i && (itemAt(vp - TQPoint(0,5)) == i && itemAt(vp + TQPoint(0,5)) == i))
{
setDropVisualizer(false);
setDropHighlighter(true);
@@ -653,7 +653,7 @@ void NodeListView::contentsDragMoveEvent(QDragMoveEvent* event)
KListView::contentsDragMoveEvent(event);
}
-bool NodeListView::acceptDrag(QDropEvent *e) const
+bool NodeListView::acceptDrag(TQDropEvent *e) const
{
if (!acceptDrops() || !itemsMovable())
return false;
@@ -700,7 +700,7 @@ void NodeListView::slotItemBegin()
void NodeListView::slotItemEnd()
{
- QListViewItem* elt = firstChild();
+ TQListViewItem* elt = firstChild();
if (elt)
while (elt->itemBelow())
elt = elt->itemBelow();
@@ -710,7 +710,7 @@ void NodeListView::slotItemEnd()
void NodeListView::slotItemLeft()
{
- QListViewItem* sel = selectedItem();
+ TQListViewItem* sel = selectedItem();
if (!sel || sel == findNodeItem(rootNode()))
return;
@@ -728,7 +728,7 @@ void NodeListView::slotItemLeft()
void NodeListView::slotItemRight()
{
- QListViewItem* sel = selectedItem();
+ TQListViewItem* sel = selectedItem();
if (!sel)
{
setSelected( firstChild(), true );
@@ -746,7 +746,7 @@ void NodeListView::slotItemRight()
void NodeListView::slotPrevFeed()
{
- for (QListViewItemIterator it( selectedItem()); it.current(); --it )
+ for (TQListViewItemIterator it( selectedItem()); it.current(); --it )
{
TreeNodeItem* tni = dynamic_cast<TreeNodeItem*>(*it);
if (tni && !tni->isSelected() && !tni->node()->isGroup() )
@@ -760,7 +760,7 @@ void NodeListView::slotPrevFeed()
void NodeListView::slotNextFeed()
{
- for (QListViewItemIterator it( selectedItem()); it.current(); ++it )
+ for (TQListViewItemIterator it( selectedItem()); it.current(); ++it )
{
TreeNodeItem* tni = dynamic_cast<TreeNodeItem*>(*it);
if ( tni && !tni->isSelected() && !tni->node()->isGroup() )
@@ -779,7 +779,7 @@ void NodeListView::slotPrevUnreadFeed()
if ( !selectedItem() )
slotNextUnreadFeed();
- QListViewItemIterator it( selectedItem() );
+ TQListViewItemIterator it( selectedItem() );
for ( ; it.current(); --it )
{
@@ -798,7 +798,7 @@ void NodeListView::slotPrevUnreadFeed()
if (rootNode()->unread() > 0)
{
- it = QListViewItemIterator(lastItem());
+ it = TQListViewItemIterator(lastItem());
for ( ; it.current(); --it)
{
@@ -820,7 +820,7 @@ void NodeListView::slotPrevUnreadFeed()
void NodeListView::slotNextUnreadFeed()
{
- QListViewItemIterator it;
+ TQListViewItemIterator it;
if ( !selectedItem() )
{
@@ -828,10 +828,10 @@ void NodeListView::slotNextUnreadFeed()
if (!firstChild() || !firstChild()->firstChild())
return;
else
- it = QListViewItemIterator( firstChild()->firstChild());
+ it = TQListViewItemIterator( firstChild()->firstChild());
}
else
- it = QListViewItemIterator( selectedItem() );
+ it = TQListViewItemIterator( selectedItem() );
for ( ; it.current(); ++it )
{
@@ -853,7 +853,7 @@ void NodeListView::slotNextUnreadFeed()
}
}
-void NodeListView::slotSelectionChanged(QListViewItem* item)
+void NodeListView::slotSelectionChanged(TQListViewItem* item)
{
TreeNodeItem* ni = dynamic_cast<TreeNodeItem*> (item);
@@ -863,7 +863,7 @@ void NodeListView::slotSelectionChanged(QListViewItem* item)
}
}
-void NodeListView::slotItemRenamed(QListViewItem* item, int col, const QString& text)
+void NodeListView::slotItemRenamed(TQListViewItem* item, int col, const TQString& text)
{
TreeNodeItem* ni = dynamic_cast<TreeNodeItem*> (item);
if ( !ni || !ni->node() )
@@ -876,7 +876,7 @@ void NodeListView::slotItemRenamed(QListViewItem* item, int col, const QString&
}
}
}
-void NodeListView::slotContextMenu(KListView* list, QListViewItem* item, const QPoint& p)
+void NodeListView::slotContextMenu(KListView* list, TQListViewItem* item, const TQPoint& p)
{
TreeNodeItem* ti = dynamic_cast<TreeNodeItem*>(item);
emit signalContextMenu(list, ti ? ti->node() : 0, p);
@@ -893,7 +893,7 @@ void NodeListView::slotFeedFetchStarted(Feed* feed)
if (item)
{
KIconEffect iconEffect;
- QPixmap tempIcon = iconEffect.apply(feed->favicon(), KIcon::Small, KIcon::DisabledState);
+ TQPixmap tempIcon = iconEffect.apply(feed->favicon(), KIcon::Small, KIcon::DisabledState);
item->setPixmap(0, tempIcon);
}
}
@@ -944,8 +944,8 @@ void NodeListView::connectToNodeList(NodeList* list)
if (!list)
return;
- connect(list, SIGNAL(signalDestroyed(NodeList*)), this, SLOT(slotNodeListDestroyed(NodeList*)) );
- connect(list->rootNode(), SIGNAL(signalChanged(TreeNode*)), this, SLOT(slotRootNodeChanged(TreeNode*)));
+ connect(list, TQT_SIGNAL(signalDestroyed(NodeList*)), this, TQT_SLOT(slotNodeListDestroyed(NodeList*)) );
+ connect(list->rootNode(), TQT_SIGNAL(signalChanged(TreeNode*)), this, TQT_SLOT(slotRootNodeChanged(TreeNode*)));
}
void NodeListView::disconnectFromNodeList(NodeList* list)
@@ -953,8 +953,8 @@ void NodeListView::disconnectFromNodeList(NodeList* list)
if (!list)
return;
- disconnect(list, SIGNAL(signalDestroyed(NodeList*)), this, SLOT(slotNodeListDestroyed(NodeList*)) );
- disconnect(list->rootNode(), SIGNAL(signalChanged(TreeNode*)), this, SLOT(slotRootNodeChanged(TreeNode*)));
+ disconnect(list, TQT_SIGNAL(signalDestroyed(NodeList*)), this, TQT_SLOT(slotNodeListDestroyed(NodeList*)) );
+ disconnect(list->rootNode(), TQT_SIGNAL(signalChanged(TreeNode*)), this, TQT_SLOT(slotRootNodeChanged(TreeNode*)));
}
void NodeListView::disconnectFromNode(TreeNode* node)
@@ -992,10 +992,10 @@ void NodeListView::slotNodeChanged(TreeNode* node)
}
}
-QDragObject *NodeListView::dragObject()
+TQDragObject *NodeListView::dragObject()
{
KMultipleDrag *md = new KMultipleDrag(viewport());
- QDragObject *obj = KListView::dragObject();
+ TQDragObject *obj = KListView::dragObject();
if (obj) {
md->addDragObject(obj);
}