summaryrefslogtreecommitdiffstats
path: root/kjsembed/builtins/resources.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 15:55:57 -0600
commit9ba04742771370f59740e32e11c5f3a1e6a1b70a (patch)
treec81c34dae2b3b1ea73801bf18a960265dc4207f7 /kjsembed/builtins/resources.cpp
parent1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff)
downloadtdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz
tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip
Initial TQt conversion
Diffstat (limited to 'kjsembed/builtins/resources.cpp')
-rw-r--r--kjsembed/builtins/resources.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/kjsembed/builtins/resources.cpp b/kjsembed/builtins/resources.cpp
index 84128f69..40ffdcd2 100644
--- a/kjsembed/builtins/resources.cpp
+++ b/kjsembed/builtins/resources.cpp
@@ -70,75 +70,75 @@ void StdDirsImp::addBindings( KJS::ExecState *exec, KJS::Object &parent )
KJS::Value StdDirsImp::call( KJS::ExecState *exec, KJS::Object &/*self*/, const KJS::List &args )
{
-// TQString arg0 = extractQString(exec, args, 0);
-// TQString arg1 = extractQString(exec, args, 1);
+// TTQString arg0 = extractTQString(exec, args, 0);
+// TTQString arg1 = extractTQString(exec, args, 1);
switch( id ) {
case StdDirsImp::findResource:
{
- TQString arg0 = extractQString(exec, args, 0);
- TQString arg1 = extractQString(exec, args, 1);
- TQString path = KGlobal::dirs ()->findResource(arg0.latin1(), arg1);
+ TTQString arg0 = extractTQString(exec, args, 0);
+ TTQString arg1 = extractTQString(exec, args, 1);
+ TTQString path = KGlobal::dirs ()->findResource(arg0.latin1(), arg1);
return KJS::String( path );
}
case StdDirsImp::addResourceType:
{
- TQString arg0 = extractQString(exec, args, 0);
- TQString arg1 = extractQString(exec, args, 1);
+ TTQString arg0 = extractTQString(exec, args, 0);
+ TTQString arg1 = extractTQString(exec, args, 1);
bool isOk = KGlobal::dirs ()->addResourceType(arg0.latin1(), arg1);
return KJS::Boolean( isOk );
}
case StdDirsImp::kde_default:
{
- TQString arg0 = extractQString(exec, args, 0);
- TQString path = KGlobal::dirs ()->kde_default(arg0.latin1());
+ TTQString arg0 = extractTQString(exec, args, 0);
+ TTQString path = KGlobal::dirs ()->kde_default(arg0.latin1());
return KJS::String( path );
}
case StdDirsImp::addResourceDir:
{
- TQString arg0 = extractQString(exec, args, 0);
- TQString arg1 = extractQString(exec, args, 1);
+ TTQString arg0 = extractTQString(exec, args, 0);
+ TTQString arg1 = extractTQString(exec, args, 1);
bool isOk = KGlobal::dirs ()->addResourceDir(arg0.latin1(), arg1);
return KJS::Boolean( isOk );
}
case StdDirsImp::findResourceDir:
{
- TQString arg0 = extractQString(exec, args, 0);
- TQString arg1 = extractQString(exec, args, 1);
- TQString path = KGlobal::dirs ()->findResourceDir(arg0.latin1(), arg1);
+ TTQString arg0 = extractTQString(exec, args, 0);
+ TTQString arg1 = extractTQString(exec, args, 1);
+ TTQString path = KGlobal::dirs ()->findResourceDir(arg0.latin1(), arg1);
return KJS::String( path );
}
case StdDirsImp::saveLocation:
{
- TQString arg0 = extractQString(exec, args, 0);
- TQString arg1 = extractQString(exec, args, 1);
+ TTQString arg0 = extractTQString(exec, args, 0);
+ TTQString arg1 = extractTQString(exec, args, 1);
bool arg2 = (args.size() > 2) ? args[2].toBoolean(exec) : true;
- TQString path = KGlobal::dirs ()->saveLocation(arg0.latin1(), arg1, arg2);
+ TTQString path = KGlobal::dirs ()->saveLocation(arg0.latin1(), arg1, arg2);
return KJS::String( path );
}
case StdDirsImp::makeDir:
{
- TQString arg0 = extractQString(exec, args, 0);
+ TTQString arg0 = extractTQString(exec, args, 0);
int arg1 = (args.size() > 1) ? args[1].toInteger(exec) : 0755;
bool isOk = KStandardDirs::makeDir(arg0, arg1);
return KJS::Boolean( isOk );
}
case StdDirsImp::exists:
{
- TQString arg0 = extractQString(exec, args, 0);
+ TTQString arg0 = extractTQString(exec, args, 0);
bool isOk = KStandardDirs::exists(arg0);
return KJS::Boolean( isOk );
}
case StdDirsImp::realPath:
{
- TQString arg0 = extractQString(exec, args, 0);
- TQString path = KStandardDirs::realPath(arg0);
+ TTQString arg0 = extractTQString(exec, args, 0);
+ TTQString path = KStandardDirs::realPath(arg0);
return KJS::String( path );
}
case StdDirsImp::currentDirPath:
- return KJS::String(TQDir::currentDirPath());
+ return KJS::String(TTQDir::currentDirPath());
case StdDirsImp::homeDirPath:
- return KJS::String(TQDir::homeDirPath());
+ return KJS::String(TTQDir::homeDirPath());
case StdDirsImp::applicationDirPath:
return KJS::String(qApp->applicationDirPath());
default:
@@ -178,14 +178,14 @@ void StdIconsImp::addBindings( JSFactory *fact, KJS::ExecState *exec, KJS::Obje
}
-KJS::Value StdIconsImp::wrapPixmap(KJS::ExecState *exec, const TQPixmap &icon)
+KJS::Value StdIconsImp::wrapPixmap(KJS::ExecState *exec, const TTQPixmap &icon)
{
return convertToValue(exec, icon);
}
KJS::Value StdIconsImp::call( KJS::ExecState *exec, KJS::Object &/*obj*/, const KJS::List &args )
{
- TQString arg0 = extractQString(exec, args, 0); // Name
+ TTQString arg0 = extractTQString(exec, args, 0); // Name
int arg1 = extractInt(exec, args, 1); // Size 0, 16, 24, 32, 48, 64, 128
int arg2 = extractInt(exec, args, 2);
// State 0 DefaultState, 1 ActiveState, 2 DisabledState, 3 LastState
@@ -212,7 +212,7 @@ KJS::Value StdIconsImp::call( KJS::ExecState *exec, KJS::Object &/*obj*/, const
}
case StdIconsImp::MimeSourceIcon:
{
- return wrapPixmap( exec, TQPixmap::fromMimeSource(arg0));
+ return wrapPixmap( exec, TTQPixmap::fromMimeSource(arg0));
}
default:
kdWarning() << "StdDirsImp has no method " << id << endl;