summaryrefslogtreecommitdiffstats
path: root/languages/php
diff options
context:
space:
mode:
Diffstat (limited to 'languages/php')
-rw-r--r--languages/php/phperrorview.cpp26
-rw-r--r--languages/php/phperrorview.h16
-rw-r--r--languages/php/phpsupportpart.cpp8
3 files changed, 25 insertions, 25 deletions
diff --git a/languages/php/phperrorview.cpp b/languages/php/phperrorview.cpp
index d3134a89..0703ff3c 100644
--- a/languages/php/phperrorview.cpp
+++ b/languages/php/phperrorview.cpp
@@ -53,16 +53,16 @@
#include <tqlayout.h>
#include <tqlineedit.h>
-class ProblemItem: public KListViewItem
+class ProblemItem: public TDEListViewItem
{
public:
ProblemItem( TQListView* parent, const TQString& problem,
const TQString& file, const TQString& line, const TQString& column )
- : KListViewItem( parent, problem, file, line, column ) {}
+ : TDEListViewItem( parent, problem, file, line, column ) {}
ProblemItem( TQListViewItem* parent, const TQString& problem,
const TQString& file, const TQString& line, const TQString& column )
- : KListViewItem( parent, problem, file, line, column ) {}
+ : TDEListViewItem( parent, problem, file, line, column ) {}
int compare( TQListViewItem* item, int column, bool ascending ) const {
if( column == 2 || column == 3 ){
@@ -72,7 +72,7 @@ public:
return 0;
return( a > b ? 1 : -1 );
}
- return KListViewItem::compare( item, column, ascending );
+ return TDEListViewItem::compare( item, column, ascending );
}
};
@@ -92,11 +92,11 @@ PHPErrorView::PHPErrorView( PHPSupportPart* part, TQWidget* parent, const char*
m_gridLayout = new TQGridLayout(this,2,3);
- m_errorList = new KListView(this);
- m_fixmeList = new KListView(this);
- m_todoList = new KListView(this);
- m_filteredList = new KListView(this);
- m_currentList = new KListView(this);
+ m_errorList = new TDEListView(this);
+ m_fixmeList = new TDEListView(this);
+ m_todoList = new TDEListView(this);
+ m_filteredList = new TDEListView(this);
+ m_currentList = new TDEListView(this);
m_filteredList->addColumn( i18n("Level") );
m_currentList->addColumn( i18n("Level") );
@@ -162,12 +162,12 @@ void PHPErrorView::slotFilter()
}
-void PHPErrorView::filterList(KListView* listview, const TQString& level)
+void PHPErrorView::filterList(TDEListView* listview, const TQString& level)
{
TQListViewItemIterator it( listview );
while ( it.current() ) {
if ( it.current()->text(3).contains(m_filterEdit->text(),false))
- new KListViewItem(m_filteredList,level,
+ new TDEListViewItem(m_filteredList,level,
it.current()->text(0),it.current()->text(1),it.current()->text(2),it.current()->text(3));
++it;
}
@@ -178,7 +178,7 @@ void PHPErrorView::slotTabSelected( int tabindex )
m_widgetStack->raiseWidget(tabindex);
}
-void PHPErrorView::InitListView(KListView* listview)
+void PHPErrorView::InitListView(TDEListView* listview)
{
listview->addColumn( i18n("File") );
listview->addColumn( i18n("Line") );
@@ -313,7 +313,7 @@ void PHPErrorView::reportProblem( int level, const TQString& fileName, int line,
TQString relFileName = fileName;
relFileName.remove(m_phpSupport->project()->projectDirectory());
- KListView* list;
+ TDEListView* list;
switch( level )
{
case Error:
diff --git a/languages/php/phperrorview.h b/languages/php/phperrorview.h
index 20eeb859..a14c0c8e 100644
--- a/languages/php/phperrorview.h
+++ b/languages/php/phperrorview.h
@@ -75,9 +75,9 @@ private slots:
private:
TQString levelToString( int level ) const;
int levelToMarkType( int level ) const;
- void InitListView(KListView* listview);
+ void InitListView(TDEListView* listview);
void removeAllItems( TQListView* listview, const TQString& filename );
- void filterList(KListView* listview, const TQString& level);
+ void filterList(TDEListView* listview, const TQString& level);
void updateCurrentWith(TQListView* listview, const TQString& level, const TQString& filename);
void initCurrentList();
@@ -85,12 +85,12 @@ private:
TQGridLayout* m_gridLayout;
TQTabBar* m_tabBar;
TQWidgetStack* m_widgetStack;
- KListView* m_currentList;
- KListView* m_errorList;
- KListView* m_fixmeList;
- KListView* m_warningList;
- KListView* m_todoList;
- KListView* m_filteredList;
+ TDEListView* m_currentList;
+ TDEListView* m_errorList;
+ TDEListView* m_fixmeList;
+ TDEListView* m_warningList;
+ TDEListView* m_todoList;
+ TDEListView* m_filteredList;
KLineEdit* m_filterEdit;
PHPSupportPart* m_phpSupport;
diff --git a/languages/php/phpsupportpart.cpp b/languages/php/phpsupportpart.cpp
index 5d42b59e..e7a597de 100644
--- a/languages/php/phpsupportpart.cpp
+++ b/languages/php/phpsupportpart.cpp
@@ -86,15 +86,15 @@ PHPSupportPart::PHPSupportPart(TQObject *parent, const char *name, const TQStrin
connect( core(), TQT_SIGNAL(projectConfigWidget(KDialogBase*)),
this, TQT_SLOT(projectConfigWidget(KDialogBase*)) );
- KAction *action;
+ TDEAction *action;
- action = new KAction( i18n("&Run"), "exec",Key_F9,
+ action = new TDEAction( i18n("&Run"), "exec",Key_F9,
this, TQT_SLOT(slotRun()),
actionCollection(), "build_execute" );
action->setToolTip(i18n("Run"));
action->setWhatsThis(i18n("<b>Run</b><p>Executes script on a terminal or a webserver."));
- action = new KAction( i18n("&New Class..."),0,
+ action = new TDEAction( i18n("&New Class..."),0,
this, TQT_SLOT(slotNewClass()),
actionCollection(), "project_new_class" );
action->setToolTip(i18n("New class"));
@@ -125,7 +125,7 @@ PHPSupportPart::PHPSupportPart(TQObject *parent, const char *name, const TQStrin
m_codeCompletion = new PHPCodeCompletion(this, configData);
- new KAction(i18n("Complete Text"), CTRL+Key_Space, m_codeCompletion, TQT_SLOT(cursorPositionChanged()), actionCollection(), "edit_complete_text");
+ new TDEAction(i18n("Complete Text"), CTRL+Key_Space, m_codeCompletion, TQT_SLOT(cursorPositionChanged()), actionCollection(), "edit_complete_text");
connect( partController(), TQT_SIGNAL(activePartChanged(KParts::Part*)),
this, TQT_SLOT(slotActivePartChanged(KParts::Part *)));