summaryrefslogtreecommitdiffstats
path: root/tdelirc/irkick
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2024-01-14 14:09:37 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2024-01-14 14:09:37 +0900
commitaf0b8f5d1e5e00b1f3b48658d89876c2df28e71c (patch)
tree11e4cc0bc31cd049daeb734b4d9e0ee00fac9eab /tdelirc/irkick
parent09fd0dead9b5dcb29dde24957ae8c07269c49aa1 (diff)
downloadtdeutils-af0b8f5d1e5e00b1f3b48658d89876c2df28e71c.tar.gz
tdeutils-af0b8f5d1e5e00b1f3b48658d89876c2df28e71c.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdelirc/irkick')
-rw-r--r--tdelirc/irkick/irkick.cpp20
-rw-r--r--tdelirc/irkick/tdelircclient.cpp4
2 files changed, 12 insertions, 12 deletions
diff --git a/tdelirc/irkick/irkick.cpp b/tdelirc/irkick/irkick.cpp
index 25a0c9f..cf4827a 100644
--- a/tdelirc/irkick/irkick.cpp
+++ b/tdelirc/irkick/irkick.cpp
@@ -60,23 +60,23 @@ IRKick::IRKick(const TQCString &obj) : TQObject(), DCOPObject(obj), npApp(TQStri
else
{ theTrayIcon->setPixmap(SmallIcon("irkickoff"));
TQToolTip::add(theTrayIcon, i18n("TDE Lirc Server: No infra-red remote controls found."));
- TQTimer::singleShot(10000, this, TQT_SLOT(checkLirc()));
+ TQTimer::singleShot(10000, this, TQ_SLOT(checkLirc()));
}
theFlashOff = new TQTimer(theTrayIcon);
- connect(theFlashOff, TQT_SIGNAL(timeout()), TQT_SLOT(flashOff()));
+ connect(theFlashOff, TQ_SIGNAL(timeout()), TQ_SLOT(flashOff()));
theResetCount = 0;
slotReloadConfiguration();
- connect(theClient, TQT_SIGNAL(connectionClosed()), this, TQT_SLOT(slotClosed()));
- connect(theClient, TQT_SIGNAL(remotesRead()), this, TQT_SLOT(resetModes()));
- connect(theClient, TQT_SIGNAL(commandReceived(const TQString &, const TQString &, int)), this, TQT_SLOT(gotMessage(const TQString &, const TQString &, int)));
+ connect(theClient, TQ_SIGNAL(connectionClosed()), this, TQ_SLOT(slotClosed()));
+ connect(theClient, TQ_SIGNAL(remotesRead()), this, TQ_SLOT(resetModes()));
+ connect(theClient, TQ_SIGNAL(commandReceived(const TQString &, const TQString &, int)), this, TQ_SLOT(gotMessage(const TQString &, const TQString &, int)));
theTrayIcon->contextMenu()->changeTitle(0, "IRKick");
- theTrayIcon->contextMenu()->insertItem(SmallIcon( "configure" ), i18n("&Configure..."), this, TQT_SLOT(slotConfigure()));
+ theTrayIcon->contextMenu()->insertItem(SmallIcon( "configure" ), i18n("&Configure..."), this, TQ_SLOT(slotConfigure()));
theTrayIcon->contextMenu()->insertSeparator();
theTrayIcon->contextMenu()->insertItem(SmallIcon( "help" ), KStdGuiItem::help().text(), (new KHelpMenu(theTrayIcon, TDEGlobal::instance()->aboutData()))->menu());
- theTrayIcon->actionCollection()->action("file_quit")->disconnect(TQT_SIGNAL(activated()));
- connect(theTrayIcon->actionCollection()->action("file_quit"), TQT_SIGNAL(activated()), TQT_SLOT(doQuit()));
+ theTrayIcon->actionCollection()->action("file_quit")->disconnect(TQ_SIGNAL(activated()));
+ connect(theTrayIcon->actionCollection()->action("file_quit"), TQ_SIGNAL(activated()), TQ_SLOT(doQuit()));
theTrayIcon->show();
}
@@ -92,7 +92,7 @@ void IRKick::slotClosed()
{
theTrayIcon->setPixmap(SmallIcon("irkickoff"));
KPassivePopup::message("IRKick", i18n("The infrared system has severed its connection. Remote controls are no longer available."), SmallIcon("irkick"), theTrayIcon);
- TQTimer::singleShot(1000, this, TQT_SLOT(checkLirc()));
+ TQTimer::singleShot(1000, this, TQ_SLOT(checkLirc()));
}
void IRKick::checkLirc()
@@ -103,7 +103,7 @@ void IRKick::checkLirc()
theTrayIcon->setPixmap(SmallIcon("irkick"));
}
else
- TQTimer::singleShot(10000, this, TQT_SLOT(checkLirc()));
+ TQTimer::singleShot(10000, this, TQ_SLOT(checkLirc()));
}
void IRKick::flashOff()
diff --git a/tdelirc/irkick/tdelircclient.cpp b/tdelirc/irkick/tdelircclient.cpp
index ee00c88..c70d39a 100644
--- a/tdelirc/irkick/tdelircclient.cpp
+++ b/tdelirc/irkick/tdelircclient.cpp
@@ -72,8 +72,8 @@ bool KLircClient::connectToLirc()
theSocket = new TQSocket;
theSocket->setSocket(sock);
- connect(theSocket, TQT_SIGNAL(readyRead()), TQT_SLOT(slotRead()));
- connect(theSocket, TQT_SIGNAL(connectionClosed()), TQT_SLOT(slotClosed()));
+ connect(theSocket, TQ_SIGNAL(readyRead()), TQ_SLOT(slotRead()));
+ connect(theSocket, TQ_SIGNAL(connectionClosed()), TQ_SLOT(slotClosed()));
updateRemotes();
return true;
}