diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-14 16:45:05 +0000 |
commit | 48d4a26399959121f33d2bc3bfe51c7827b654fc (patch) | |
tree | 5ae5e6e00d3ba330b7b8be9bc097154b6bc739e8 /languages/ada/problemreporter.cpp | |
parent | 7e701ace6592d09e1f2c0cf28c7d6d872d78f4f5 (diff) | |
download | tdevelop-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/ada/problemreporter.cpp')
-rw-r--r-- | languages/ada/problemreporter.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/languages/ada/problemreporter.cpp b/languages/ada/problemreporter.cpp index 652d5a6b..1b9b5bc4 100644 --- a/languages/ada/problemreporter.cpp +++ b/languages/ada/problemreporter.cpp @@ -50,15 +50,15 @@ #include <kdialogbase.h> -class ProblemItem: public QListViewItem{ +class ProblemItem: public TQListViewItem{ 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 ) - : TQListViewItem( parent, level, problem, file, line, column ) {} + : TQListViewItem( 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 ) - : TQListViewItem( parent, level, problem, file, line, column ) {} + : TQListViewItem( tqparent, level, problem, file, line, column ) {} int compare( TQListViewItem* item, int column, bool ascending ) const { if( column == 3 || column == 4 ){ @@ -73,8 +73,8 @@ public: }; -ProblemReporter::ProblemReporter( AdaSupportPart* part, TQWidget* parent, const char* name ) - : TQListView( parent, name ), +ProblemReporter::ProblemReporter( AdaSupportPart* part, TQWidget* tqparent, const char* name ) + : TQListView( tqparent, name ), m_adaSupport( part ), m_editor( 0 ), m_document( 0 ), @@ -185,7 +185,7 @@ void ProblemReporter::reparse() } /* Temporarily deactivated (crashes)*/ - if (!m_adaSupport->fileExtensions ().contains (TQFileInfo (m_filename).extension ())) + if (!m_adaSupport->fileExtensions ().tqcontains (TQFileInfo (m_filename).extension ())) { m_bgParser = new BackgroundParser( this, m_editor->text(), m_filename ); m_bgParser->start(); @@ -211,7 +211,7 @@ void ProblemReporter::reportError( TQString message, new ProblemItem( this, "error", - message.replace( TQRegExp("\n"), "" ), + message.tqreplace( TQRegExp("\n"), "" ), filename, TQString::number( line ), TQString::number( column ) ); @@ -223,7 +223,7 @@ void ProblemReporter::reportWarning( TQString message, { new ProblemItem( this, "warning", - message.replace( TQRegExp("\n"), "" ), + message.tqreplace( TQRegExp("\n"), "" ), filename, TQString::number( line ), TQString::number( column ) ); @@ -235,7 +235,7 @@ void ProblemReporter::reportMessage( TQString message, { new TQListViewItem( this, "message", - message.replace( TQRegExp("\n"), "" ), + message.tqreplace( TQRegExp("\n"), "" ), filename, TQString::number( line ), TQString::number( column ) ); |