summaryrefslogtreecommitdiffstats
path: root/languages/java/problemreporter.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-14 16:45:05 +0000
commit48d4a26399959121f33d2bc3bfe51c7827b654fc (patch)
tree5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /languages/java/problemreporter.cpp
parent7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff)
downloadtdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.tar.gz
tdevelop-48d4a26399959121f33d2bc3bfe51c7827b654fc.zip
TQt4 port kdevelop
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdevelop@1236710 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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();
}
}