diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:44:01 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:44:01 +0000 |
commit | 479f5f799523bffbcc83dff581a2299c047c6fff (patch) | |
tree | 186aae707ed02aac6c7cab2fb14e97f72aca5e36 /kjsembed/builtins/stddialog_imp.cpp | |
parent | f1dbff6145c98324ff82e34448b7483727e8ace4 (diff) | |
download | tdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.tar.gz tdebindings-479f5f799523bffbcc83dff581a2299c047c6fff.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebindings@1157645 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kjsembed/builtins/stddialog_imp.cpp')
-rw-r--r-- | kjsembed/builtins/stddialog_imp.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kjsembed/builtins/stddialog_imp.cpp b/kjsembed/builtins/stddialog_imp.cpp index 1b45c5e0..48bb468d 100644 --- a/kjsembed/builtins/stddialog_imp.cpp +++ b/kjsembed/builtins/stddialog_imp.cpp @@ -25,7 +25,7 @@ #else -#include <qfiledialog.h> +#include <tqfiledialog.h> #define KFileDialog QFileDialog #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 ) { - QString arg0 = (args.size() > 0) ? args[0].toString(exec).qstring() : QString::null; - QString arg1 = (args.size() > 1) ? args[1].toString(exec).qstring() : QString::null; + TQString arg0 = (args.size() > 0) ? args[0].toString(exec).qstring() : TQString::null; + TQString arg1 = (args.size() > 1) ? args[1].toString(exec).qstring() : TQString::null; switch( id ) { case MethodGetOpenFileName: { - QString s = KFileDialog::getOpenFileName( arg0, arg1 ); + TQString s = KFileDialog::getOpenFileName( arg0, arg1 ); return KJS::String( s ); } case MethodGetSaveFileName: { - QString s = KFileDialog::getSaveFileName( arg0, arg1 ); + TQString s = KFileDialog::getSaveFileName( arg0, arg1 ); return KJS::String( s ); } case MethodGetExistingDirectory: { - QString s = KFileDialog::getExistingDirectory( arg0 ); + TQString s = KFileDialog::getExistingDirectory( arg0 ); return KJS::String( s ); } #ifndef QT_ONLY case MethodGetColor: { - QColor col; + TQColor col; int res = KColorDialog::getColor( col ); - if ( res == QDialog::Accepted ) - return convertToValue( exec, QVariant(col) ); + if ( res == TQDialog::Accepted ) + return convertToValue( exec, TQVariant(col) ); } case MethodGetOpenURL: { |