diff options
Diffstat (limited to 'interfaces/terminal/test')
-rw-r--r-- | interfaces/terminal/test/main.cc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/interfaces/terminal/test/main.cc b/interfaces/terminal/test/main.cc index 7d5859e57..be3f4165e 100644 --- a/interfaces/terminal/test/main.cc +++ b/interfaces/terminal/test/main.cc @@ -6,7 +6,7 @@ #include <kaboutdata.h> #include <kcmdlineargs.h> #include <kapplication.h> -#include <qdir.h> +#include <tqdir.h> #include <assert.h> #include <kmessagebox.h> #include <cassert> @@ -17,17 +17,17 @@ Win::Win() { KLibFactory* factory = KLibLoader::self()->factory( "libkonsolepart" ); assert( factory ); - KParts::Part* p = static_cast<KParts::Part*>( factory->create( this, "tralala", "QObject", "KParts::ReadOnlyPart" ) ); + KParts::Part* p = static_cast<KParts::Part*>( factory->create( this, "tralala", "TQObject", "KParts::ReadOnlyPart" ) ); setCentralWidget( p->widget() ); TerminalInterface* t = static_cast<TerminalInterface*>( p->qt_cast( "TerminalInterface" ) ); - t->showShellInDir( QDir::home().path() ); -// QStrList l; + t->showShellInDir( TQDir::home().path() ); +// TQStrList l; // l.append( "python" ); -// t->startProgram( QString::fromUtf8( "/usr/bin/python" ), l ); +// t->startProgram( TQString::fromUtf8( "/usr/bin/python" ), l ); - connect( p, SIGNAL( processExited( int ) ), - this, SLOT( pythonExited( int ) ) ); + connect( p, TQT_SIGNAL( processExited( int ) ), + this, TQT_SLOT( pythonExited( int ) ) ); } @@ -47,14 +47,14 @@ void Win::pythonExited() { std::cerr << "hee, " << p << std::endl; std::cerr << ( p->qt_cast( "TerminalInterface" ) ) << std::endl; - // KMessageBox::sorry( this, QString::fromUtf8( "Exited, status was %1" ).arg( status ) ); - disconnect(p, SIGNAL( processExited() ), - this, SLOT( pythonExited() )); + // KMessageBox::sorry( this, TQString::fromUtf8( "Exited, status was %1" ).arg( status ) ); + disconnect(p, TQT_SIGNAL( processExited() ), + this, TQT_SLOT( pythonExited() )); TerminalInterface* t = static_cast<TerminalInterface*>( p->qt_cast( "TerminalInterface" ) ); - QStrList l; + TQStrList l; l.append( "echo" ); l.append( "hello world" ); - t->startProgram( QString::fromUtf8( "/bin/echo" ), l ); + t->startProgram( TQString::fromUtf8( "/bin/echo" ), l ); } void Win::forked() |