summaryrefslogtreecommitdiffstats
path: root/kjsembed/builtins/stddialog_imp.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/stddialog_imp.cpp
parent1a96c45b22d01378202d9dc7ed9c47acd30f966e (diff)
downloadtdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.tar.gz
tdebindings-9ba04742771370f59740e32e11c5f3a1e6a1b70a.zip
Initial TQt conversion
Diffstat (limited to 'kjsembed/builtins/stddialog_imp.cpp')
-rw-r--r--kjsembed/builtins/stddialog_imp.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kjsembed/builtins/stddialog_imp.cpp b/kjsembed/builtins/stddialog_imp.cpp
index 48bb468d..122cd300 100644
--- a/kjsembed/builtins/stddialog_imp.cpp
+++ b/kjsembed/builtins/stddialog_imp.cpp
@@ -26,7 +26,7 @@
#else
#include <tqfiledialog.h>
-#define KFileDialog QFileDialog
+#define KFileDialog TQFileDialog
#endif // QT_ONLY
@@ -76,32 +76,32 @@ void StdDialogImp::addBindings( KJS::ExecState *exec, KJS::Object &parent )
KJS::Value StdDialogImp::call( KJS::ExecState *exec, KJS::Object &/*self*/, const KJS::List &args )
{
- TQString arg0 = (args.size() > 0) ? args[0].toString(exec).qstring() : TQString::null;
- TQString arg1 = (args.size() > 1) ? args[1].toString(exec).qstring() : TQString::null;
+ TTQString arg0 = (args.size() > 0) ? args[0].toString(exec).qstring() : TTQString::null;
+ TTQString arg1 = (args.size() > 1) ? args[1].toString(exec).qstring() : TTQString::null;
switch( id ) {
case MethodGetOpenFileName:
{
- TQString s = KFileDialog::getOpenFileName( arg0, arg1 );
+ TTQString s = KFileDialog::getOpenFileName( arg0, arg1 );
return KJS::String( s );
}
case MethodGetSaveFileName:
{
- TQString s = KFileDialog::getSaveFileName( arg0, arg1 );
+ TTQString s = KFileDialog::getSaveFileName( arg0, arg1 );
return KJS::String( s );
}
case MethodGetExistingDirectory:
{
- TQString s = KFileDialog::getExistingDirectory( arg0 );
+ TTQString s = KFileDialog::getExistingDirectory( arg0 );
return KJS::String( s );
}
#ifndef QT_ONLY
case MethodGetColor:
{
- TQColor col;
+ TTQColor col;
int res = KColorDialog::getColor( col );
- if ( res == TQDialog::Accepted )
- return convertToValue( exec, TQVariant(col) );
+ if ( res == TTQDialog::Accepted )
+ return convertToValue( exec, TTQVariant(col) );
}
case MethodGetOpenURL:
{