summaryrefslogtreecommitdiffstats
path: root/languages/cpp/problemreporter.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-02-01 15:15:35 -0600
committerTimothy Pearson <[email protected]>2013-02-01 15:15:35 -0600
commitf78eb03afb8c9a380985d26286afc40b4c89b292 (patch)
tree3c087e2f119e645c902958c3bc3c802abf078ad0 /languages/cpp/problemreporter.cpp
parentda1941ccadffe5ae70ee111c53f0ec2b3d990869 (diff)
downloadtdevelop-f78eb03afb8c9a380985d26286afc40b4c89b292.tar.gz
tdevelop-f78eb03afb8c9a380985d26286afc40b4c89b292.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'languages/cpp/problemreporter.cpp')
-rw-r--r--languages/cpp/problemreporter.cpp36
1 files changed, 18 insertions, 18 deletions
diff --git a/languages/cpp/problemreporter.cpp b/languages/cpp/problemreporter.cpp
index baea54d7..349fc2ab 100644
--- a/languages/cpp/problemreporter.cpp
+++ b/languages/cpp/problemreporter.cpp
@@ -54,17 +54,17 @@
#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
@@ -77,7 +77,7 @@ public:
return 0;
return ( a > b ? 1 : -1 );
}
- return KListViewItem::compare( item, column, ascending );
+ return TDEListViewItem::compare( item, column, ascending );
}
};
@@ -99,12 +99,12 @@ m_markIface( 0 )
connect( m_initCurrentTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(initCurrentList()) );
m_gridLayout = new TQGridLayout(this,2,3);
- m_errorList = new KListView(this);
- m_warningList = 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_warningList = 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") );
@@ -197,14 +197,14 @@ void ProblemReporter::configWidget( KDialogBase* dlg )
{
}
-void ProblemReporter::filterList(KListView* listview, const TQString& level)
+void ProblemReporter::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));
}
@@ -217,7 +217,7 @@ void ProblemReporter::slotTabSelected( int tabindex )
m_widgetStack->raiseWidget(tabindex);
}
-void ProblemReporter::InitListView(KListView* listview)
+void ProblemReporter::InitListView(TDEListView* listview)
{
listview->addColumn( i18n("File") );
listview->addColumn( i18n("Line") );
@@ -255,7 +255,7 @@ void ProblemReporter::slotActivePartChanged( KParts::Part* part )
initCurrentList();
}
-void EfficientKListView::limitSize( int size )
+void EfficientTDEListView::limitSize( int size )
{
if( m_map.size() <= size + 50 ) return;
@@ -267,7 +267,7 @@ void EfficientKListView::limitSize( int size )
removeAllItems( (*it).str() );
}
-void EfficientKListView::removeAllItems( const TQString& str )
+void EfficientTDEListView::removeAllItems( const TQString& str )
{
HashedString h(str);
m_insertionNumbers.erase( h ) ;
@@ -326,9 +326,9 @@ void ProblemReporter::initCurrentList()
// m_tabBar->setCurrentTab(0);
}
-void ProblemReporter::updateCurrentWith(EfficientKListView& listview, const TQString& level, const TQString& filename)
+void ProblemReporter::updateCurrentWith(EfficientTDEListView& listview, const TQString& level, const TQString& filename)
{
- EfficientKListView::Range r = listview.getRange( filename );
+ EfficientTDEListView::Range r = listview.getRange( filename );
for( ; r.first != r.second; ++r.first )
new ProblemItem(m_currentList,level,(*r.first).second->text(1),(*r.first).second->text(2),(*r.first).second->text(3));
}
@@ -364,7 +364,7 @@ void ProblemReporter::reportProblem( const TQString& fileName, const Problem& p
TQString relFileName = m_cppSupport->project()->relativeProjectFile(fileName);
- EfficientKListView* list;
+ EfficientTDEListView* list;
switch( p.level() )
{