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/cpp/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/cpp/problemreporter.cpp')
-rw-r--r-- | languages/cpp/problemreporter.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/languages/cpp/problemreporter.cpp b/languages/cpp/problemreporter.cpp index c7a8e9b6..32c078e1 100644 --- a/languages/cpp/problemreporter.cpp +++ b/languages/cpp/problemreporter.cpp @@ -57,14 +57,14 @@ class ProblemItem: public KListViewItem { public: - ProblemItem( TQListView* parent, const TQString& problem, + ProblemItem( TQListView* tqparent, const TQString& problem, const TQString& file, const TQString& line, const TQString& column ) - : KListViewItem( parent, problem, file, line, column ) + : KListViewItem( tqparent, problem, file, line, column ) {} - ProblemItem( TQListViewItem* parent, const TQString& problem, + ProblemItem( TQListViewItem* tqparent, const TQString& problem, const TQString& file, const TQString& line, const TQString& column ) - : KListViewItem( parent, problem, file, line, column ) + : KListViewItem( tqparent, problem, file, line, column ) {} int compare( TQListViewItem* item, int column, bool ascending ) const @@ -82,8 +82,8 @@ public: }; -ProblemReporter::ProblemReporter( CppSupportPart* part, TQWidget* parent, const char* name ) -: TQWidget( parent, name ? name : "problemreporter" ), +ProblemReporter::ProblemReporter( CppSupportPart* part, TQWidget* tqparent, const char* name ) +: TQWidget( tqparent, name ? name : "problemreporter" ), m_cppSupport( part ), // m_document( 0 ), m_markIface( 0 ) @@ -142,8 +142,8 @@ m_markIface( 0 ) m_gridLayout->addWidget(m_tabBar,0,0); m_gridLayout->addMultiCellWidget(m_widgetStack,1,1,0,2); - m_gridLayout->addWidget(m_filterLabel,0,1,Qt::AlignRight); - m_gridLayout->addWidget(m_filterEdit,0,2,Qt::AlignLeft); + m_gridLayout->addWidget(m_filterLabel,0,1,TQt::AlignRight); + m_gridLayout->addWidget(m_filterEdit,0,2,TQt::AlignLeft); connect( m_filterEdit, TQT_SIGNAL(returnPressed()), this, TQT_SLOT(slotFilter()) ); @@ -175,7 +175,7 @@ void ProblemReporter::slotFilter() if(!m_tabBar->isTabEnabled(5)) m_tabBar->setTabEnabled(5,true); - m_tabBar->tab(5)->setText(i18n("Filtered: %1").arg( m_filterEdit->text() )); + m_tabBar->tab(5)->setText(i18n("Filtered: %1").tqarg( m_filterEdit->text() )); m_tabBar->setCurrentTab(5); m_filteredList->clear(); @@ -198,7 +198,7 @@ void ProblemReporter::filterList(KListView* listview, const TQString& level) TQListViewItemIterator it( listview ); while ( it.current() ) { - if ( it.current()->text(3).contains(m_filterEdit->text(),false)) + if ( it.current()->text(3).tqcontains(m_filterEdit->text(),false)) { new KListViewItem(m_filteredList,level, it.current()->text(0), it.current()->text(1), @@ -356,7 +356,7 @@ void ProblemReporter::reportProblem( const TQString& fileName, const Problem& p m_markIface->addMark( p.line(), markType ); TQString msg = p.text(); - msg = msg.replace( TQRegExp("\n"), "" ); + msg = msg.tqreplace( TQRegExp("\n"), "" ); TQString relFileName = m_cppSupport->project()->relativeProjectFile(fileName); @@ -416,7 +416,7 @@ TQString ProblemReporter::levelToString( int level ) const case Problem::Level_Fixme: return TQString( i18n("Fixme") ); default: - return TQString::null; + return TQString(); } } |