summaryrefslogtreecommitdiffstats
path: root/languages/kjssupport
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:15:35 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:15:35 -0600
commitf78eb03afb8c9a380985d26286afc40b4c89b292 (patch)
tree3c087e2f119e645c902958c3bc3c802abf078ad0 /languages/kjssupport
parentda1941ccadffe5ae70ee111c53f0ec2b3d990869 (diff)
downloadtdevelop-f78eb03afb8c9a380985d26286afc40b4c89b292.tar.gz
tdevelop-f78eb03afb8c9a380985d26286afc40b4c89b292.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'languages/kjssupport')
-rw-r--r--languages/kjssupport/kjsproblems.cpp10
-rw-r--r--languages/kjssupport/kjsproblems.h2
-rw-r--r--languages/kjssupport/kjssupport_part.cpp2
-rw-r--r--languages/kjssupport/kjssupport_part.h4
-rw-r--r--languages/kjssupport/template/app.js4
5 files changed, 11 insertions, 11 deletions
diff --git a/languages/kjssupport/kjsproblems.cpp b/languages/kjssupport/kjsproblems.cpp
index 31882e7c..1a13870e 100644
--- a/languages/kjssupport/kjsproblems.cpp
+++ b/languages/kjssupport/kjsproblems.cpp
@@ -20,17 +20,17 @@
#include "kjssupport_part.h"
#include <kiconloader.h>
-class KJSProblemItem: public KListViewItem
+class KJSProblemItem: public TDEListViewItem
{
public:
KJSProblemItem( TQListView* parent, const TQString& level, const TQString& problem,
const TQString& file, const TQString& line, const TQString& column )
- : KListViewItem( parent, level, problem, file, line, column )
+ : TDEListViewItem( parent, level, problem, file, line, column )
{}
KJSProblemItem( TQListViewItem* parent, const TQString& level, const TQString& problem,
const TQString& file, const TQString& line, const TQString& column )
- : KListViewItem( parent, level, problem, file, line, column )
+ : TDEListViewItem( parent, level, problem, file, line, column )
{}
int compare( TQListViewItem* item, int column, bool ascending ) const
@@ -43,12 +43,12 @@ class KJSProblemItem: public KListViewItem
return 0;
return( a > b ? 1 : -1 );
}
- return KListViewItem::compare( item, column, ascending );
+ return TDEListViewItem::compare( item, column, ascending );
}
};
-KJSProblems::KJSProblems(kjsSupportPart *part, TQWidget *parent, const char *name) : KListView(parent,name), m_part(part)
+KJSProblems::KJSProblems(kjsSupportPart *part, TQWidget *parent, const char *name) : TDEListView(parent,name), m_part(part)
{
addColumn ("File");
addColumn ("Line #");
diff --git a/languages/kjssupport/kjsproblems.h b/languages/kjssupport/kjsproblems.h
index 473624ae..beb1fd5d 100644
--- a/languages/kjssupport/kjsproblems.h
+++ b/languages/kjssupport/kjsproblems.h
@@ -25,7 +25,7 @@ class kjsSupportPart;
/**
@author ian reinhart geiser
*/
-class KJSProblems : public KListView
+class KJSProblems : public TDEListView
{
Q_OBJECT
diff --git a/languages/kjssupport/kjssupport_part.cpp b/languages/kjssupport/kjssupport_part.cpp
index c73d51bb..100f34e6 100644
--- a/languages/kjssupport/kjssupport_part.cpp
+++ b/languages/kjssupport/kjssupport_part.cpp
@@ -69,7 +69,7 @@ kjsSupportPart::kjsSupportPart(TQObject *parent, const char *name, const TQStrin
setXMLFile("kdevkjssupport.rc");
- m_build = new KAction( i18n("&Run"), "exec",Key_F9,this, TQT_SLOT(slotRun()),actionCollection(), "build_execute" );
+ m_build = new TDEAction( i18n("&Run"), "exec",Key_F9,this, TQT_SLOT(slotRun()),actionCollection(), "build_execute" );
m_build->setStatusText( i18n("Test the active script.") );
kdDebug() << "Creating kjssupport Part" << endl;
diff --git a/languages/kjssupport/kjssupport_part.h b/languages/kjssupport/kjssupport_part.h
index 1a1eae10..4572b9a2 100644
--- a/languages/kjssupport/kjssupport_part.h
+++ b/languages/kjssupport/kjssupport_part.h
@@ -35,7 +35,7 @@ class KJSConsoleWidget;
};
class TQPopupMenu;
-class KAction;
+class TDEAction;
class KJSProblems;
class JSCodeCompletion;
class Context;
@@ -73,7 +73,7 @@ class kjsSupportPart : public KDevLanguageSupport
void addAttribute(const TQString &name, FileDom file, uint lineNo);
void addMethod(const TQString &name, FileDom file, uint lineNo);
ClassDom addClass(const TQString &name, FileDom file, uint lineNo);
- KAction *m_build;
+ TDEAction *m_build;
KJSEmbed::KJSEmbedPart *m_js;
KJSProblems *m_problemReporter;
TQDict<typeProperty> m_typeMap;
diff --git a/languages/kjssupport/template/app.js b/languages/kjssupport/template/app.js
index aa564dd6..f15d3bfa 100644
--- a/languages/kjssupport/template/app.js
+++ b/languages/kjssupport/template/app.js
@@ -1,8 +1,8 @@
#!/usr/bin/env kjscmd
// Create main view
-var mw = new KMainWindow();
-var lv = new KListView( mw );
+var mw = new TDEMainWindow();
+var lv = new TDEListView( mw );
mw.setCentralWidget(lv);
lv.addColumn('One');