summaryrefslogtreecommitdiffstats
path: root/kjsembed/builtins/textstream_imp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kjsembed/builtins/textstream_imp.cpp')
-rw-r--r--kjsembed/builtins/textstream_imp.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/kjsembed/builtins/textstream_imp.cpp b/kjsembed/builtins/textstream_imp.cpp
index 6be24dd9..4ab3aeb1 100644
--- a/kjsembed/builtins/textstream_imp.cpp
+++ b/kjsembed/builtins/textstream_imp.cpp
@@ -17,8 +17,8 @@
* Boston, MA 02110-1301, USA.
*/
-#include <qtextstream.h>
-#include <qiodevice.h>
+#include <tqtextstream.h>
+#include <tqiodevice.h>
#include <kjsembed/global.h>
#include <kjsembed/jsbinding.h>
@@ -28,7 +28,7 @@
namespace KJSEmbed {
namespace BuiltIns {
-TextStreamImp::TextStreamImp( KJS::ExecState *exec, int mid, QTextStream *textstream )
+TextStreamImp::TextStreamImp( KJS::ExecState *exec, int mid, TQTextStream *textstream )
: JSProxyImp(exec), id(mid), ts(textstream)
{
}
@@ -47,7 +47,7 @@ void TextStreamImp::addBindings( KJS::ExecState *exec, KJS::Object &parent )
return;
}
- QTextStream *ts = op->toTextStream();
+ TQTextStream *ts = op->toTextStream();
if ( !ts ) {
kdWarning() << "TextStreamImp::addBindings() failed, type is " << op->typeName() << endl;
return;
@@ -73,12 +73,12 @@ void TextStreamImp::addBindings( KJS::ExecState *exec, KJS::Object &parent )
KJS::Value TextStreamImp::call( KJS::ExecState *exec, KJS::Object &/*self*/, const KJS::List &args )
{
- QString not_readable = i18n( "Attempt to read from a write-only text stream." );
- QString not_writable = i18n( "Attempt to write to a read-only text stream." );
+ TQString not_readable = i18n( "Attempt to read from a write-only text stream." );
+ TQString not_writable = i18n( "Attempt to write to a read-only text stream." );
- QString arg0 = extractQString(exec, args, 0);
+ TQString arg0 = extractQString(exec, args, 0);
- QIODevice *dev = ts->device();
+ TQIODevice *dev = ts->device();
KJS::Object err;
switch ( id ) {
@@ -102,7 +102,7 @@ KJS::Value TextStreamImp::call( KJS::ExecState *exec, KJS::Object &/*self*/, con
break;
case MethodReadLine:
if ( dev->isReadable() ) {
- QString line = ts->readLine();
+ TQString line = ts->readLine();
if ( line.isNull() )
return KJS::Null();
else