diff options
author | Timothy Pearson <[email protected]> | 2013-02-01 14:57:56 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2013-02-01 14:57:56 -0600 |
commit | 6d33c9774c2d9115894db9ad296b91b73b55bc97 (patch) | |
tree | b8f3fbbfe305f642e54f2f1eacf6bc31b5348232 /src/resultlistview.cpp | |
parent | a7a8d7053d25f615198af314f0404952a6a412b3 (diff) | |
download | abakus-6d33c9774c2d9115894db9ad296b91b73b55bc97.tar.gz abakus-6d33c9774c2d9115894db9ad296b91b73b55bc97.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'src/resultlistview.cpp')
-rw-r--r-- | src/resultlistview.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
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<ResultListViewText *>(KListView::lastItem()); + return static_cast<ResultListViewText *>(TDEListView::lastItem()); } ResultListViewText *ResultListView::itemUnderCursor() const |