From 7f03918f8df7479b0e1a88288066201a301e87bf Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Fri, 12 Jan 2024 11:17:33 +0900 Subject: Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines Signed-off-by: Michele Calgaro (cherry picked from commit ba3b5b77e1a430dc7197df20872ba46ce2fb6fa7) --- dcop/testdcop.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'dcop/testdcop.cpp') diff --git a/dcop/testdcop.cpp b/dcop/testdcop.cpp index 1a18eaff3..583a0255b 100644 --- a/dcop/testdcop.cpp +++ b/dcop/testdcop.cpp @@ -84,13 +84,13 @@ tqDebug("countDown() countDownAction = %p", countDownAction); { countDownCount = 10; countDownAction = client->beginTransaction(); - TQTimer::singleShot(1000, this, TQT_SLOT(slotTimeout())); + TQTimer::singleShot(1000, this, TQ_SLOT(slotTimeout())); } else { countDownCount2 = 10; countDownAction2 = client->beginTransaction(); - TQTimer::singleShot(1000, this, TQT_SLOT(slotTimeout2())); + TQTimer::singleShot(1000, this, TQ_SLOT(slotTimeout2())); } return true; } @@ -113,7 +113,7 @@ void MyDCOPObject::slotTimeout() } else { - TQTimer::singleShot(1000, this, TQT_SLOT(slotTimeout())); + TQTimer::singleShot(1000, this, TQ_SLOT(slotTimeout())); } } @@ -132,7 +132,7 @@ void MyDCOPObject::slotTimeout2() } else { - TQTimer::singleShot(1000, this, TQT_SLOT(slotTimeout2())); + TQTimer::singleShot(1000, this, TQ_SLOT(slotTimeout2())); } } @@ -146,7 +146,7 @@ QCStringList MyDCOPObject::functions() TestObject::TestObject(const TQCString& app) : m_app(app) { - TQTimer::singleShot(2500, this, TQT_SLOT(slotTimeout())); + TQTimer::singleShot(2500, this, TQ_SLOT(slotTimeout())); } void TestObject::slotTimeout() @@ -191,10 +191,10 @@ int main(int argc, char **argv) TQCString appId = argv[1]; TestObject obj(appId); tqWarning("#1 Calling countDown"); - int result = client->callAsync(appId, "object1", "countDown()", data, &obj, TQT_SLOT(slotCallBack(int, const TQCString&, const TQByteArray&))); + int result = client->callAsync(appId, "object1", "countDown()", data, &obj, TQ_SLOT(slotCallBack(int, const TQCString&, const TQByteArray&))); tqDebug("#1 countDown() call id = %d", result); tqWarning("#2 Calling countDown"); - result = client->callAsync(appId, "object1", "countDown()", data, &obj, TQT_SLOT(slotCallBack(int, const TQCString&, const TQByteArray&))); + result = client->callAsync(appId, "object1", "countDown()", data, &obj, TQ_SLOT(slotCallBack(int, const TQCString&, const TQByteArray&))); tqDebug("#2 countDown() call id = %d", result); app.exec(); @@ -234,11 +234,11 @@ int main(int argc, char **argv) int n = client->registeredApplications().count(); tqDebug("number of attached applications = %d", n ); - TQObject::connect( client, TQT_SIGNAL( applicationRegistered( const TQCString&)), - obj1, TQT_SLOT( registered( const TQCString& ))); + TQObject::connect( client, TQ_SIGNAL( applicationRegistered( const TQCString&)), + obj1, TQ_SLOT( registered( const TQCString& ))); - TQObject::connect( client, TQT_SIGNAL( applicationRemoved( const TQCString&)), - obj1, TQT_SLOT( unregistered( const TQCString& ))); + TQObject::connect( client, TQ_SIGNAL( applicationRemoved( const TQCString&)), + obj1, TQ_SLOT( unregistered( const TQCString& ))); // Enable the above signals client->setNotifications( true ); -- cgit v1.2.1