summaryrefslogtreecommitdiffstats
path: root/interfaces/terminal/test
diff options
context:
space:
mode:
Diffstat (limited to 'interfaces/terminal/test')
-rw-r--r--interfaces/terminal/test/Makefile.am2
-rw-r--r--interfaces/terminal/test/main.cpp (renamed from interfaces/terminal/test/main.cc)16
-rw-r--r--interfaces/terminal/test/main.h2
3 files changed, 10 insertions, 10 deletions
diff --git a/interfaces/terminal/test/Makefile.am b/interfaces/terminal/test/Makefile.am
index 03a04301b..414159af1 100644
--- a/interfaces/terminal/test/Makefile.am
+++ b/interfaces/terminal/test/Makefile.am
@@ -1,6 +1,6 @@
INCLUDES=$(all_includes)
check_PROGRAMS=test
-test_SOURCES=main.cc
+test_SOURCES=main.cpp
test_LDADD=$(LIB_TQT) $(LIB_TDECORE) $(LIB_TDEUI) -ltdeio
test_LDFLAGS=$(all_libraries)
METASOURCES=AUTO
diff --git a/interfaces/terminal/test/main.cc b/interfaces/terminal/test/main.cpp
index 8130f85d6..f0d51b259 100644
--- a/interfaces/terminal/test/main.cc
+++ b/interfaces/terminal/test/main.cpp
@@ -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", TQOBJECT_OBJECT_NAME_STRING, "KParts::ReadOnlyPart" ) );
+ KParts::Part* p = factory->create( this, "tralala", "TQObject", "KParts::ReadOnlyPart" ) ;
setCentralWidget( p->widget() );
- TerminalInterface* t = ::tqqt_cast<TerminalInterface*>( p );
+ TerminalInterface* t = ::tqt_cast<TerminalInterface*>( p );
t->showShellInDir( TQDir::home().path() );
// TQStrList l;
// l.append( "python" );
// t->startProgram( TQString::fromUtf8( "/usr/bin/python" ), l );
- connect( p, TQT_SIGNAL( processExited( int ) ),
- this, TQT_SLOT( pythonExited( int ) ) );
+ connect( p, TQ_SIGNAL( processExited( int ) ),
+ this, TQ_SLOT( pythonExited( int ) ) );
}
@@ -46,11 +46,11 @@ int main( int argc, char** argv )
void Win::pythonExited()
{
std::cerr << "hee, " << p << std::endl;
- std::cerr << ( ::tqqt_cast<TerminalInterface>(p) ) << std::endl;
+ std::cerr << ( ::tqt_cast<TerminalInterface>(p) ) << std::endl;
// KMessageBox::sorry( this, TQString::fromUtf8( "Exited, status was %1" ).arg( status ) );
- disconnect(p, TQT_SIGNAL( processExited() ),
- this, TQT_SLOT( pythonExited() ));
- TerminalInterface* t = ::tqqt_cast<TerminalInterface*>( p );
+ disconnect(p, TQ_SIGNAL( processExited() ),
+ this, TQ_SLOT( pythonExited() ));
+ TerminalInterface* t = ::tqt_cast<TerminalInterface*>( p );
TQStrList l;
l.append( "echo" );
l.append( "hello world" );
diff --git a/interfaces/terminal/test/main.h b/interfaces/terminal/test/main.h
index 256b0840a..bf87cb041 100644
--- a/interfaces/terminal/test/main.h
+++ b/interfaces/terminal/test/main.h
@@ -5,7 +5,7 @@
class Win
: public TDEMainWindow
{
- Q_OBJECT
+ TQ_OBJECT
KParts::Part* p;
public:
Win();