summaryrefslogtreecommitdiffstats
path: root/languages/java/problemreporter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'languages/java/problemreporter.cpp')
-rw-r--r--languages/java/problemreporter.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/languages/java/problemreporter.cpp b/languages/java/problemreporter.cpp
index a5beaaf2..f287f70d 100644
--- a/languages/java/problemreporter.cpp
+++ b/languages/java/problemreporter.cpp
@@ -54,13 +54,13 @@
class ProblemItem: public KListViewItem
{
public:
- ProblemItem( TQListView* parent, const TQString& level, const TQString& problem,
+ ProblemItem( TQListView* tqparent, const TQString& level, const TQString& problem,
const TQString& file, const TQString& line, const TQString& column )
- : KListViewItem( parent, level, problem, file, line, column ) {}
+ : KListViewItem( tqparent, level, problem, file, line, column ) {}
- ProblemItem( TQListViewItem* parent, const TQString& level, const TQString& problem,
+ ProblemItem( TQListViewItem* tqparent, const TQString& level, const TQString& problem,
const TQString& file, const TQString& line, const TQString& column )
- : KListViewItem( parent, level, problem, file, line, column ) {}
+ : KListViewItem( tqparent, level, problem, file, line, column ) {}
int compare( TQListViewItem* item, int column, bool ascending ) const {
if( column == 2 || column == 3 ){
@@ -75,8 +75,8 @@ public:
};
-ProblemReporter::ProblemReporter( JavaSupportPart* part, TQWidget* parent, const char* name )
- : KListView( parent, name ? name : "problemreporter" ),
+ProblemReporter::ProblemReporter( JavaSupportPart* part, TQWidget* tqparent, const char* name )
+ : KListView( tqparent, name ? name : "problemreporter" ),
m_javaSupport( part ),
m_document( 0 ),
m_markIface( 0 )
@@ -214,7 +214,7 @@ void ProblemReporter::reportProblem( const TQString& fileName, const Problem& p
}
TQString msg = p.text();
- msg = msg.replace( TQRegExp("\n"), "" );
+ msg = msg.tqreplace( TQRegExp("\n"), "" );
new ProblemItem( this,
levelToString( p.level() ),
@@ -267,15 +267,15 @@ TQString ProblemReporter::levelToString( int level ) const
switch( level )
{
case Problem::Level_Error:
- return TQString::fromLatin1( "Error" );
+ return TQString::tqfromLatin1( "Error" );
case Problem::Level_Warning:
- return TQString::fromLatin1( "Warning" );
+ return TQString::tqfromLatin1( "Warning" );
case Problem::Level_Todo:
- return TQString::fromLatin1( "Todo" );
+ return TQString::tqfromLatin1( "Todo" );
case Problem::Level_Fixme:
- return TQString::fromLatin1( "Fixme" );
+ return TQString::tqfromLatin1( "Fixme" );
default:
- return TQString::null;
+ return TQString();
}
}