From fd5d099065a748cac49e20a13481f85666c53c71 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 15:14:12 -0600 Subject: Rename a number of classes to enhance compatibility with KDE4 --- akregator/src/feedlistview.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'akregator/src/feedlistview.cpp') diff --git a/akregator/src/feedlistview.cpp b/akregator/src/feedlistview.cpp index 117d94c0e..2bb1cbfc0 100644 --- a/akregator/src/feedlistview.cpp +++ b/akregator/src/feedlistview.cpp @@ -353,7 +353,7 @@ class NodeListView::CreateItemVisitor : public TreeNodeVisitor }; NodeListView::NodeListView( TQWidget *parent, const char *name) - : KListView(parent, name), d(new NodeListViewPrivate) + : TDEListView(parent, name), d(new NodeListViewPrivate) { d->showTagFolders = true; d->connectNodeVisitor = new ConnectNodeVisitor(this), @@ -380,7 +380,7 @@ NodeListView::NodeListView( TQWidget *parent, const char *name) 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( this, TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint&)), this, TQT_SLOT(slotContextMenu(TDEListView*, TQListViewItem*, const TQPoint&)) ); connect( &(d->autoopentimer), TQT_SIGNAL( timeout() ), this, TQT_SLOT( openFolder() ) ); clear(); @@ -462,7 +462,7 @@ TreeNodeItem* NodeListView::findNodeItem(TreeNode* node) TreeNodeItem* NodeListView::findItemByTitle(const TQString& text, int column, ComparisonFlags compare) const { - return dynamic_cast (KListView::findItem(text, column, compare)); + return dynamic_cast (TDEListView::findItem(text, column, compare)); } void NodeListView::ensureNodeVisible(TreeNode* node) @@ -487,7 +487,7 @@ void NodeListView::clear() d->itemDict.clear(); d->nodeList = 0; - KListView::clear(); + TDEListView::clear(); } void NodeListView::drawContentsOffset( TQPainter * p, int ox, int oy, @@ -495,7 +495,7 @@ void NodeListView::drawContentsOffset( TQPainter * p, int ox, int oy, { bool oldUpdatesEnabled = isUpdatesEnabled(); setUpdatesEnabled(false); - KListView::drawContentsOffset( p, ox, oy, cx, cy, cw, ch ); + TDEListView::drawContentsOffset( p, ox, oy, cx, cy, cw, ch ); setUpdatesEnabled(oldUpdatesEnabled); } @@ -543,7 +543,7 @@ void NodeListView::movableDropEvent(TQListViewItem* /*parent*/, TQListViewItem* current->parent()->removeChild(current); parentNode->insertChild(current, afterMeNode); - KListView::movableDropEvent(d->parent, d->afterme); + TDEListView::movableDropEvent(d->parent, d->afterme); } } @@ -649,8 +649,8 @@ void NodeListView::contentsDragMoveEvent(TQDragMoveEvent* event) d->autoopentimer.stop(); } - // the rest is handled by KListView. - KListView::contentsDragMoveEvent(event); + // the rest is handled by TDEListView. + TDEListView::contentsDragMoveEvent(event); } bool NodeListView::acceptDrag(TQDropEvent *e) const @@ -876,7 +876,7 @@ void NodeListView::slotItemRenamed(TQListViewItem* item, int col, const TQString } } } -void NodeListView::slotContextMenu(KListView* list, TQListViewItem* item, const TQPoint& p) +void NodeListView::slotContextMenu(TDEListView* list, TQListViewItem* item, const TQPoint& p) { TreeNodeItem* ti = dynamic_cast(item); emit signalContextMenu(list, ti ? ti->node() : 0, p); @@ -995,7 +995,7 @@ void NodeListView::slotNodeChanged(TreeNode* node) TQDragObject *NodeListView::dragObject() { KMultipleDrag *md = new KMultipleDrag(viewport()); - TQDragObject *obj = KListView::dragObject(); + TQDragObject *obj = TDEListView::dragObject(); if (obj) { md->addDragObject(obj); } -- cgit v1.2.1