summaryrefslogtreecommitdiffstats
path: root/languages/php/phperrorview.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/php/phperrorview.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/php/phperrorview.cpp')
-rw-r--r--languages/php/phperrorview.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/languages/php/phperrorview.cpp b/languages/php/phperrorview.cpp
index e5d479ec..241adb44 100644
--- a/languages/php/phperrorview.cpp
+++ b/languages/php/phperrorview.cpp
@@ -56,13 +56,13 @@
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 {
if( column == 2 || column == 3 ){
@@ -77,8 +77,8 @@ public:
};
-PHPErrorView::PHPErrorView( PHPSupportPart* part, TQWidget* parent, const char* name )
- : TQWidget( parent, name ? name : "problemreporter" ),
+PHPErrorView::PHPErrorView( PHPSupportPart* part, TQWidget* tqparent, const char* name )
+ : TQWidget( tqparent, name ? name : "problemreporter" ),
m_phpSupport( part ),
m_document( 0 ),
m_markIface( 0 )
@@ -133,8 +133,8 @@ PHPErrorView::PHPErrorView( PHPSupportPart* part, TQWidget* parent, const char*
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()) );
connect( m_filterEdit, TQT_SIGNAL(textChanged( const TQString & )), this, TQT_SLOT(slotFilter()) );
@@ -151,7 +151,7 @@ void PHPErrorView::slotFilter()
if(!m_tabBar->isTabEnabled(4))
m_tabBar->setTabEnabled(4,true);
- m_tabBar->tab(4)->setText(i18n("Filtered: %1").arg( m_filterEdit->text() ));
+ m_tabBar->tab(4)->setText(i18n("Filtered: %1").tqarg( m_filterEdit->text() ));
m_tabBar->setCurrentTab(4);
m_filteredList->clear();
@@ -166,7 +166,7 @@ void PHPErrorView::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),it.current()->text(2),it.current()->text(3));
++it;
@@ -308,7 +308,7 @@ void PHPErrorView::reportProblem( int level, const TQString& fileName, int line,
}
TQString msg = text;
- msg = msg.replace( TQRegExp("\n"), "" );
+ msg = msg.tqreplace( TQRegExp("\n"), "" );
TQString relFileName = fileName;
relFileName.remove(m_phpSupport->project()->projectDirectory());
@@ -390,7 +390,7 @@ TQString PHPErrorView::levelToString( int level ) const
return TQString( i18n("Fixme") );
default:
- return TQString::null;
+ return TQString();
}
}