summaryrefslogtreecommitdiffstats
path: root/tdecore/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tdecore/tests')
-rw-r--r--tdecore/tests/kipctest.cpp12
-rw-r--r--tdecore/tests/kipctest.h12
-rw-r--r--tdecore/tests/kprocesstest.cpp32
-rw-r--r--tdecore/tests/kprociotest.cpp4
-rw-r--r--tdecore/tests/tdeconfigtestgui.cpp16
5 files changed, 38 insertions, 38 deletions
diff --git a/tdecore/tests/kipctest.cpp b/tdecore/tests/kipctest.cpp
index d1a678ac9..72101d8b1 100644
--- a/tdecore/tests/kipctest.cpp
+++ b/tdecore/tests/kipctest.cpp
@@ -8,12 +8,12 @@
MyObject::MyObject()
: TQObject(0L, "testobj")
{
- connect(kapp, TQT_SIGNAL(tdedisplayPaletteChanged()), TQT_SLOT(slotPaletteChanged()));
- connect(kapp, TQT_SIGNAL(tdedisplayFontChanged()), TQT_SLOT(slotFontChanged()));
- connect(kapp, TQT_SIGNAL(tdedisplayStyleChanged()), TQT_SLOT(slotStyleChanged()));
- connect(kapp, TQT_SIGNAL(backgroundChanged(int)), TQT_SLOT(slotBackgroundChanged(int)));
- connect(kapp, TQT_SIGNAL(appearanceChanged()), TQT_SLOT(slotAppearanceChanged()));
- connect(kapp, TQT_SIGNAL(kipcMessage(int,int)), TQT_SLOT(slotMessage(int,int)));
+ connect(kapp, TQ_SIGNAL(tdedisplayPaletteChanged()), TQ_SLOT(slotPaletteChanged()));
+ connect(kapp, TQ_SIGNAL(tdedisplayFontChanged()), TQ_SLOT(slotFontChanged()));
+ connect(kapp, TQ_SIGNAL(tdedisplayStyleChanged()), TQ_SLOT(slotStyleChanged()));
+ connect(kapp, TQ_SIGNAL(backgroundChanged(int)), TQ_SLOT(slotBackgroundChanged(int)));
+ connect(kapp, TQ_SIGNAL(appearanceChanged()), TQ_SLOT(slotAppearanceChanged()));
+ connect(kapp, TQ_SIGNAL(kipcMessage(int,int)), TQ_SLOT(slotMessage(int,int)));
}
int main(int argc, char **argv)
diff --git a/tdecore/tests/kipctest.h b/tdecore/tests/kipctest.h
index 1f71843f6..d4c3d538d 100644
--- a/tdecore/tests/kipctest.h
+++ b/tdecore/tests/kipctest.h
@@ -10,12 +10,12 @@ public:
MyObject();
public slots:
- void slotPaletteChanged() { printf("SIGNAL: Palette changed\n"); }
- void slotStyleChanged() { printf("SIGNAL: Style changed\n"); }
- void slotFontChanged() { printf("SIGNAL: Font changed\n"); }
- void slotBackgroundChanged(int i) { printf("SIGNAL: Background %d changed\n", i); }
- void slotAppearanceChanged() { printf("SIGNAL: Appearance changed\n"); }
- void slotMessage(int id, int arg) { printf("SIGNAL: user message: %d,%d\n", id, arg); }
+ void slotPaletteChanged() { printf("TQ_SIGNAL: Palette changed\n"); }
+ void slotStyleChanged() { printf("TQ_SIGNAL: Style changed\n"); }
+ void slotFontChanged() { printf("TQ_SIGNAL: Font changed\n"); }
+ void slotBackgroundChanged(int i) { printf("TQ_SIGNAL: Background %d changed\n", i); }
+ void slotAppearanceChanged() { printf("TQ_SIGNAL: Appearance changed\n"); }
+ void slotMessage(int id, int arg) { printf("TQ_SIGNAL: user message: %d,%d\n", id, arg); }
};
#endif
diff --git a/tdecore/tests/kprocesstest.cpp b/tdecore/tests/kprocesstest.cpp
index d8d86d988..b7908ec6e 100644
--- a/tdecore/tests/kprocesstest.cpp
+++ b/tdecore/tests/kprocesstest.cpp
@@ -46,7 +46,7 @@ int main(int argc, char *argv[])
//
p1 << "kghostview";
- TQObject::connect(&p1, TQT_SIGNAL(processExited(TDEProcess *)), &dummy, TQT_SLOT(printMessage(TDEProcess *)));
+ TQObject::connect(&p1, TQ_SIGNAL(processExited(TDEProcess *)), &dummy, TQ_SLOT(printMessage(TDEProcess *)));
printf("starting kghostview blocking (close to continue)\n");
p1.start(TDEProcess::Block);
@@ -62,7 +62,7 @@ int main(int argc, char *argv[])
printf("Starting konsole with /bin/tcsh as shell (close to continue)\n");
p2 << "konsole" << "-e" << "/bin/tcsh";
p2.setWorkingDirectory("/tmp");
- TQObject::connect(&p2, TQT_SIGNAL(processExited(TDEProcess *)), &dummy, TQT_SLOT(printMessage(TDEProcess *)));
+ TQObject::connect(&p2, TQ_SIGNAL(processExited(TDEProcess *)), &dummy, TQ_SLOT(printMessage(TDEProcess *)));
p2.start(TDEProcess::Block);
//
@@ -70,13 +70,13 @@ int main(int argc, char *argv[])
//
p3 << "ls" << "-l";
- TQObject::connect(&p3, TQT_SIGNAL(processExited(TDEProcess *)),
- &dummy, TQT_SLOT(printMessage(TDEProcess *)));
+ TQObject::connect(&p3, TQ_SIGNAL(processExited(TDEProcess *)),
+ &dummy, TQ_SLOT(printMessage(TDEProcess *)));
- TQObject::connect(&p3, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)),
- &dummy, TQT_SLOT(gotOutput(TDEProcess *, char *, int)));
- TQObject::connect(&p3, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
- &dummy, TQT_SLOT(gotOutput(TDEProcess *, char *, int)));
+ TQObject::connect(&p3, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int)),
+ &dummy, TQ_SLOT(gotOutput(TDEProcess *, char *, int)));
+ TQObject::connect(&p3, TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
+ &dummy, TQ_SLOT(gotOutput(TDEProcess *, char *, int)));
p3.start(TDEProcess::NotifyOnExit, TDEProcess::AllOutput);
@@ -93,16 +93,16 @@ int main(int argc, char *argv[])
//
p4 << "sort";
- TQObject::connect(&p4, TQT_SIGNAL(processExited(TDEProcess *)),
- &dummy, TQT_SLOT(printMessage(TDEProcess *)));
+ TQObject::connect(&p4, TQ_SIGNAL(processExited(TDEProcess *)),
+ &dummy, TQ_SLOT(printMessage(TDEProcess *)));
- TQObject::connect(&p4, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)),
- &dummy, TQT_SLOT(gotOutput(TDEProcess *, char *, int)));
- TQObject::connect(&p4, TQT_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
- &dummy, TQT_SLOT(gotOutput(TDEProcess *, char *, int)));
+ TQObject::connect(&p4, TQ_SIGNAL(receivedStdout(TDEProcess *, char *, int)),
+ &dummy, TQ_SLOT(gotOutput(TDEProcess *, char *, int)));
+ TQObject::connect(&p4, TQ_SIGNAL(receivedStderr(TDEProcess *, char *, int)),
+ &dummy, TQ_SLOT(gotOutput(TDEProcess *, char *, int)));
- TQObject::connect(&p4, TQT_SIGNAL(wroteStdin(TDEProcess *)),
- &dummy, TQT_SLOT(outputDone(TDEProcess *)));
+ TQObject::connect(&p4, TQ_SIGNAL(wroteStdin(TDEProcess *)),
+ &dummy, TQ_SLOT(outputDone(TDEProcess *)));
p4.start(TDEProcess::NotifyOnExit, TDEProcess::All);
printf("after p4.start");
diff --git a/tdecore/tests/kprociotest.cpp b/tdecore/tests/kprociotest.cpp
index f7e895345..e7165092c 100644
--- a/tdecore/tests/kprociotest.cpp
+++ b/tdecore/tests/kprociotest.cpp
@@ -41,8 +41,8 @@ int main(int argc, char *argv[])
p << "rev";
- p.connect(&p, TQT_SIGNAL(processExited(TDEProcess*)), &dummy, TQT_SLOT(printMessage(TDEProcess*)));
- p.connect(&p, TQT_SIGNAL(readReady(KProcIO*)), &dummy, TQT_SLOT(gotOutput(KProcIO*)));
+ p.connect(&p, TQ_SIGNAL(processExited(TDEProcess*)), &dummy, TQ_SLOT(printMessage(TDEProcess*)));
+ p.connect(&p, TQ_SIGNAL(readReady(KProcIO*)), &dummy, TQ_SLOT(gotOutput(KProcIO*)));
bool b;
diff --git a/tdecore/tests/tdeconfigtestgui.cpp b/tdecore/tests/tdeconfigtestgui.cpp
index f5ea428c0..c785aa3b3 100644
--- a/tdecore/tests/tdeconfigtestgui.cpp
+++ b/tdecore/tests/tdeconfigtestgui.cpp
@@ -76,8 +76,8 @@ TDEConfigTestView::TDEConfigTestView( TQWidget *parent, const char *name )
pAppFileEdit = new TQLineEdit( this, "appconfigedit" );
pAppFileEdit->setGeometry( 240, 20, 160, 20 );
- connect( pAppFileEdit, TQT_SIGNAL(returnPressed()),
- TQT_SLOT(appConfigEditReturnPressed()));
+ connect( pAppFileEdit, TQ_SIGNAL(returnPressed()),
+ TQ_SLOT(appConfigEditReturnPressed()));
// Label and edit for the group
pGroupLabel = new TQLabel( this, "grouplabel" );
@@ -86,14 +86,14 @@ TDEConfigTestView::TDEConfigTestView( TQWidget *parent, const char *name )
pGroupEdit = new TQLineEdit( this, "groupedit" );
pGroupEdit->setGeometry( 120, 60, 100, 20 );
- connect( pGroupEdit, TQT_SIGNAL(returnPressed()),
- TQT_SLOT(groupEditReturnPressed()));
+ connect( pGroupEdit, TQ_SIGNAL(returnPressed()),
+ TQ_SLOT(groupEditReturnPressed()));
// Edit and label for the key/value pair
pKeyEdit = new TQLineEdit( this, "keyedit" );
pKeyEdit->setGeometry( 20, 100, 80, 20 );
- connect( pKeyEdit, TQT_SIGNAL( returnPressed()),
- TQT_SLOT(keyEditReturnPressed()));
+ connect( pKeyEdit, TQ_SIGNAL( returnPressed()),
+ TQ_SLOT(keyEditReturnPressed()));
pEqualsLabel = new TQLabel( this, "equalslabel" );
pEqualsLabel->setGeometry( 105, 100, 20, 20 );
@@ -106,7 +106,7 @@ TDEConfigTestView::TDEConfigTestView( TQWidget *parent, const char *name )
pWriteButton = new TQPushButton( this, "writebutton" );
pWriteButton->setGeometry( 20,140, 80, 20 );
pWriteButton->setText( "Write entry" );
- connect( pWriteButton, TQT_SIGNAL(clicked()), TQT_SLOT( writeButtonClicked() ) );
+ connect( pWriteButton, TQ_SIGNAL(clicked()), TQ_SLOT( writeButtonClicked() ) );
// Labels for the info line
pInfoLabel1 = new TQLabel( this, "infolabel1" );
@@ -121,7 +121,7 @@ TDEConfigTestView::TDEConfigTestView( TQWidget *parent, const char *name )
pQuitButton = new TQPushButton( this, "quitbutton" );
pQuitButton->setText( "Quit" );
pQuitButton->setGeometry( 340, 60, 60, 60 );
- connect( pQuitButton, TQT_SIGNAL(clicked()), tqApp, TQT_SLOT(quit()) );
+ connect( pQuitButton, TQ_SIGNAL(clicked()), tqApp, TQ_SLOT(quit()) );
// create a default TDEConfig object in order to be able to start right away
pConfig = new TDEConfig( TQString::null );