summaryrefslogtreecommitdiffstats
path: root/kjsembed
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-31 13:27:29 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-31 13:27:29 -0600
commit7ef8543bfa4eb291a7e6da1c66eaca751b46ca99 (patch)
tree90d4164a5fe2be6b87876870998219e451c1588e /kjsembed
parentbe2540d3ed68c7b71995ea5b69c9605f44a158ad (diff)
downloadtdebindings-7ef8543bfa4eb291a7e6da1c66eaca751b46ca99.tar.gz
tdebindings-7ef8543bfa4eb291a7e6da1c66eaca751b46ca99.zip
Rename KStandard for enhanced compatibility with KDE4
Diffstat (limited to 'kjsembed')
-rw-r--r--kjsembed/builtins/resources.cpp6
-rw-r--r--kjsembed/builtins/resources.h2
-rwxr-xr-xkjsembed/docs/build-docs.sh2
-rw-r--r--kjsembed/jsbuiltin_imp.cpp2
4 files changed, 6 insertions, 6 deletions
diff --git a/kjsembed/builtins/resources.cpp b/kjsembed/builtins/resources.cpp
index fb98f1ae..7bf44e1b 100644
--- a/kjsembed/builtins/resources.cpp
+++ b/kjsembed/builtins/resources.cpp
@@ -120,19 +120,19 @@ KJS::Value StdDirsImp::call( KJS::ExecState *exec, KJS::Object &/*self*/, const
{
TQString arg0 = extractTQString(exec, args, 0);
int arg1 = (args.size() > 1) ? args[1].toInteger(exec) : 0755;
- bool isOk = KStandardDirs::makeDir(arg0, arg1);
+ bool isOk = TDEStandardDirs::makeDir(arg0, arg1);
return KJS::Boolean( isOk );
}
case StdDirsImp::exists:
{
TQString arg0 = extractTQString(exec, args, 0);
- bool isOk = KStandardDirs::exists(arg0);
+ bool isOk = TDEStandardDirs::exists(arg0);
return KJS::Boolean( isOk );
}
case StdDirsImp::realPath:
{
TQString arg0 = extractTQString(exec, args, 0);
- TQString path = KStandardDirs::realPath(arg0);
+ TQString path = TDEStandardDirs::realPath(arg0);
return KJS::String( path );
}
case StdDirsImp::currentDirPath:
diff --git a/kjsembed/builtins/resources.h b/kjsembed/builtins/resources.h
index cfd589ce..00bcdeb0 100644
--- a/kjsembed/builtins/resources.h
+++ b/kjsembed/builtins/resources.h
@@ -33,7 +33,7 @@ namespace KJSEmbed {
namespace BuiltIns {
/**
- * KJS binding for KStandardDirs.
+ * KJS binding for TDEStandardDirs.
*
* @author Ian Reinhart Geiser geiseri@kde.org
*/
diff --git a/kjsembed/docs/build-docs.sh b/kjsembed/docs/build-docs.sh
index 1dcd8637..3384b0a6 100755
--- a/kjsembed/docs/build-docs.sh
+++ b/kjsembed/docs/build-docs.sh
@@ -19,7 +19,7 @@ $JS write_docs.js 'this' 'this' 'Default context scripts are executed in.' > $RE
$JS write_docs.js 'Global' 'global' 'The global object.' > $REF/global.html
$JS write_docs.js 'Application' 'application' 'Global application object.' > $REF/application.html
$JS write_docs.js 'Part' 'part' 'Part used by the interpreter.' > $REF/part.html
-$JS write_docs.js 'StdDirs' 'StdDirs' 'Provides access to KStandardDirs.' > $REF/stddirs.html
+$JS write_docs.js 'StdDirs' 'StdDirs' 'Provides access to TDEStandardDirs.' > $REF/stddirs.html
$JS write_docs.js 'StdIcons' 'StdIcons' 'Provides access to the KIconLoader.' > $REF/stdicons.html
# Custom Objects
diff --git a/kjsembed/jsbuiltin_imp.cpp b/kjsembed/jsbuiltin_imp.cpp
index 27aad2b4..d9f307d9 100644
--- a/kjsembed/jsbuiltin_imp.cpp
+++ b/kjsembed/jsbuiltin_imp.cpp
@@ -241,7 +241,7 @@ KJS::Value JSBuiltInImp::call( KJS::ExecState *exec, KJS::Object &self, const KJ
#ifndef QT_ONLY
// Scan $TDEDIRS/share/apps/$APPNAME/
// Scan $TDEDIRS/share/apps/kjsembed/
- TDEGlobal::dirs()->addResourceType("kjsembed", KStandardDirs::kde_default("data") +"/kjsembed/");
+ TDEGlobal::dirs()->addResourceType("kjsembed", TDEStandardDirs::kde_default("data") +"/kjsembed/");
TQString fname = TDEGlobal::dirs ()->findResource ("kjsembed", TQString(arg0));
kdDebug(80001) << "Loading: " << fname << endl;