From 6d33c9774c2d9115894db9ad296b91b73b55bc97 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 14:57:56 -0600 Subject: Rename a number of classes to enhance compatibility with KDE4 --- src/resultlistview.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/resultlistview.cpp') diff --git a/src/resultlistview.cpp b/src/resultlistview.cpp index abf2c67..ae6f0d2 100644 --- a/src/resultlistview.cpp +++ b/src/resultlistview.cpp @@ -35,7 +35,7 @@ using DragSupport::makePixmap; using namespace ResultList; ResultListView::ResultListView(TQWidget *parent, const char *name) : - KListView(parent, name), m_itemRightClicked(0) + TDEListView(parent, name), m_itemRightClicked(0) { connect(this, TQT_SIGNAL(doubleClicked(TQListViewItem *, const TQPoint &, int)), TQT_SLOT(slotDoubleClicked(TQListViewItem *, const TQPoint &, int))); @@ -94,7 +94,7 @@ TQDragObject *ResultListView::dragObject() void ResultListView::contextMenuEvent(TQContextMenuEvent *e) { m_itemRightClicked = itemUnderCursor(); - KPopupMenu *menu = constructPopupMenu(m_itemRightClicked); + TDEPopupMenu *menu = constructPopupMenu(m_itemRightClicked); menu->popup(e->globalPos()); } @@ -111,9 +111,9 @@ void ResultListView::slotDoubleClicked(TQListViewItem *item, const TQPoint &, in emit signalResultSelected(textItem->resultText()); } -KPopupMenu *ResultListView::constructPopupMenu(const ResultListViewText *item) +TDEPopupMenu *ResultListView::constructPopupMenu(const ResultListViewText *item) { - KPopupMenu *menu = new KPopupMenu(this, "list view context menu"); + TDEPopupMenu *menu = new TDEPopupMenu(this, "list view context menu"); menu->insertItem(i18n("Clear &History"), this, TQT_SLOT(clear()), ALT+Key_R); @@ -136,7 +136,7 @@ void ResultListView::slotCopyResult() ResultListViewText *ResultListView::lastItem() const { - return static_cast(KListView::lastItem()); + return static_cast(TDEListView::lastItem()); } ResultListViewText *ResultListView::itemUnderCursor() const -- cgit v1.2.1