diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:15:35 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2013-02-01 15:15:35 -0600 |
commit | f78eb03afb8c9a380985d26286afc40b4c89b292 (patch) | |
tree | 3c087e2f119e645c902958c3bc3c802abf078ad0 /languages/php/phperrorview.cpp | |
parent | da1941ccadffe5ae70ee111c53f0ec2b3d990869 (diff) | |
download | tdevelop-f78eb03afb8c9a380985d26286afc40b4c89b292.tar.gz tdevelop-f78eb03afb8c9a380985d26286afc40b4c89b292.zip |
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'languages/php/phperrorview.cpp')
-rw-r--r-- | languages/php/phperrorview.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/languages/php/phperrorview.cpp b/languages/php/phperrorview.cpp index d3134a89..0703ff3c 100644 --- a/languages/php/phperrorview.cpp +++ b/languages/php/phperrorview.cpp @@ -53,16 +53,16 @@ #include <tqlayout.h> #include <tqlineedit.h> -class ProblemItem: public KListViewItem +class ProblemItem: public TDEListViewItem { public: ProblemItem( TQListView* parent, const TQString& problem, const TQString& file, const TQString& line, const TQString& column ) - : KListViewItem( parent, problem, file, line, column ) {} + : TDEListViewItem( parent, problem, file, line, column ) {} ProblemItem( TQListViewItem* parent, const TQString& problem, const TQString& file, const TQString& line, const TQString& column ) - : KListViewItem( parent, problem, file, line, column ) {} + : TDEListViewItem( parent, problem, file, line, column ) {} int compare( TQListViewItem* item, int column, bool ascending ) const { if( column == 2 || column == 3 ){ @@ -72,7 +72,7 @@ public: return 0; return( a > b ? 1 : -1 ); } - return KListViewItem::compare( item, column, ascending ); + return TDEListViewItem::compare( item, column, ascending ); } }; @@ -92,11 +92,11 @@ PHPErrorView::PHPErrorView( PHPSupportPart* part, TQWidget* parent, const char* m_gridLayout = new TQGridLayout(this,2,3); - m_errorList = new KListView(this); - m_fixmeList = new KListView(this); - m_todoList = new KListView(this); - m_filteredList = new KListView(this); - m_currentList = new KListView(this); + m_errorList = new TDEListView(this); + m_fixmeList = new TDEListView(this); + m_todoList = new TDEListView(this); + m_filteredList = new TDEListView(this); + m_currentList = new TDEListView(this); m_filteredList->addColumn( i18n("Level") ); m_currentList->addColumn( i18n("Level") ); @@ -162,12 +162,12 @@ void PHPErrorView::slotFilter() } -void PHPErrorView::filterList(KListView* listview, const TQString& level) +void PHPErrorView::filterList(TDEListView* listview, const TQString& level) { TQListViewItemIterator it( listview ); while ( it.current() ) { if ( it.current()->text(3).contains(m_filterEdit->text(),false)) - new KListViewItem(m_filteredList,level, + new TDEListViewItem(m_filteredList,level, it.current()->text(0),it.current()->text(1),it.current()->text(2),it.current()->text(3)); ++it; } @@ -178,7 +178,7 @@ void PHPErrorView::slotTabSelected( int tabindex ) m_widgetStack->raiseWidget(tabindex); } -void PHPErrorView::InitListView(KListView* listview) +void PHPErrorView::InitListView(TDEListView* listview) { listview->addColumn( i18n("File") ); listview->addColumn( i18n("Line") ); @@ -313,7 +313,7 @@ void PHPErrorView::reportProblem( int level, const TQString& fileName, int line, TQString relFileName = fileName; relFileName.remove(m_phpSupport->project()->projectDirectory()); - KListView* list; + TDEListView* list; switch( level ) { case Error: |