From f78eb03afb8c9a380985d26286afc40b4c89b292 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 1 Feb 2013 15:15:35 -0600 Subject: Rename a number of classes to enhance compatibility with KDE4 --- parts/texttools/texttoolswidget.cpp | 10 +++++----- parts/texttools/texttoolswidget.h | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'parts/texttools') diff --git a/parts/texttools/texttoolswidget.cpp b/parts/texttools/texttoolswidget.cpp index f655511f..2bc1299a 100644 --- a/parts/texttools/texttoolswidget.cpp +++ b/parts/texttools/texttoolswidget.cpp @@ -58,7 +58,7 @@ public: TextToolsWidget::TextToolsWidget(TextToolsPart *part, TQWidget *parent, const char *name) - : KListView(parent, name) + : TDEListView(parent, name) { setResizeMode(TQListView::LastColumn); setSorting(-1); @@ -74,8 +74,8 @@ TextToolsWidget::TextToolsWidget(TextToolsPart *part, TQWidget *parent, const ch // this, TQT_SLOT(slotItemPressed(int,TQListViewItem*)) ); connect( this, TQT_SIGNAL(returnPressed(TQListViewItem*)), this, TQT_SLOT(slotReturnPressed(TQListViewItem*)) ); - 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&)) ); } @@ -148,13 +148,13 @@ void TextToolsWidget::slotReturnPressed(TQListViewItem *item) } -void TextToolsWidget::slotContextMenu(KListView *, TQListViewItem *item, const TQPoint &) +void TextToolsWidget::slotContextMenu(TDEListView *, TQListViewItem *item, const TQPoint &) { if (!item) return; #if 0 - KPopupMenu popup(i18n("Text Structure"), this); + TDEPopupMenu popup(i18n("Text Structure"), this); popup.exec(p); #endif } diff --git a/parts/texttools/texttoolswidget.h b/parts/texttools/texttoolswidget.h index 6428e522..2e3c274a 100644 --- a/parts/texttools/texttoolswidget.h +++ b/parts/texttools/texttoolswidget.h @@ -21,7 +21,7 @@ namespace KParts { class Part; } namespace KTextEditor { class EditInterface; } -class TextToolsWidget : public KListView +class TextToolsWidget : public TDEListView { Q_OBJECT @@ -38,7 +38,7 @@ public: private slots: void slotItemPressed(int button, TQListViewItem *item); void slotReturnPressed(TQListViewItem *item); - void slotContextMenu(KListView *, TQListViewItem *item, const TQPoint &p); + void slotContextMenu(TDEListView *, TQListViewItem *item, const TQPoint &p); void startTimer(); void parseXML(); -- cgit v1.2.1