diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:46:43 +0000 |
commit | ffe8a83e053396df448e9413828527613ca3bd46 (patch) | |
tree | a73d4169e02df4a50f9a12cb165fcd0ab5bac7c6 /interfaces/terminal/test/main.cc | |
parent | 682bf3bfdcbcbb1fca85e8a36ed03e062e0555d5 (diff) | |
download | tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.tar.gz tdelibs-ffe8a83e053396df448e9413828527613ca3bd46.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1157647 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'interfaces/terminal/test/main.cc')
-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() |