summaryrefslogtreecommitdiffstats
path: root/kded
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2024-01-12 11:17:33 +0900
committerMichele Calgaro <[email protected]>2024-01-15 11:09:32 +0900
commit7f03918f8df7479b0e1a88288066201a301e87bf (patch)
treeef42e0c7ecbd6d292ca5aa7f3aeca141dd65cdb1 /kded
parentccaaecf59c0e607be633c45ad3b7bb1ef29e981f (diff)
downloadtdelibs-7f03918f8df7479b0e1a88288066201a301e87bf.tar.gz
tdelibs-7f03918f8df7479b0e1a88288066201a301e87bf.zip
Use new TQ_METHOD, TQ_SIGNAL, TQ_SLOT defines
Signed-off-by: Michele Calgaro <[email protected]> (cherry picked from commit ba3b5b77e1a430dc7197df20872ba46ce2fb6fa7)
Diffstat (limited to 'kded')
-rw-r--r--kded/kded.cpp36
-rw-r--r--kded/kdedmodule.cpp2
-rw-r--r--kded/tdebuildsycoca.cpp12
3 files changed, 25 insertions, 25 deletions
diff --git a/kded/kded.cpp b/kded/kded.cpp
index e1b3b6b33..d9a6eac55 100644
--- a/kded/kded.cpp
+++ b/kded/kded.cpp
@@ -110,9 +110,9 @@ Kded::Kded(bool checkUpdates, bool new_startup)
else
cPath = tdesycoca_env;
m_pTimer = new TQTimer(this);
- connect(m_pTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(recreate()));
+ connect(m_pTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(recreate()));
- TQTimer::singleShot(100, this, TQT_SLOT(installCrashHandler()));
+ TQTimer::singleShot(100, this, TQ_SLOT(installCrashHandler()));
m_pDirWatch = 0;
@@ -316,7 +316,7 @@ KDEDModule *Kded::loadModule(const KService *s, bool onDemand)
{
m_modules.insert(obj, module);
m_libs.insert(obj, lib);
- connect(module, TQT_SIGNAL(moduleDeleted(KDEDModule *)), TQT_SLOT(slotKDEDModuleRemoved(KDEDModule *)));
+ connect(module, TQ_SIGNAL(moduleDeleted(KDEDModule *)), TQ_SLOT(slotKDEDModuleRemoved(KDEDModule *)));
kdDebug(7020) << "Successfully loaded module '" << obj << "'\n";
return module;
}
@@ -400,12 +400,12 @@ void Kded::updateDirWatch()
delete m_pDirWatch;
m_pDirWatch = new KDirWatch;
- TQObject::connect( m_pDirWatch, TQT_SIGNAL(dirty(const TQString&)),
- this, TQT_SLOT(update(const TQString&)));
- TQObject::connect( m_pDirWatch, TQT_SIGNAL(created(const TQString&)),
- this, TQT_SLOT(update(const TQString&)));
- TQObject::connect( m_pDirWatch, TQT_SIGNAL(deleted(const TQString&)),
- this, TQT_SLOT(dirDeleted(const TQString&)));
+ TQObject::connect( m_pDirWatch, TQ_SIGNAL(dirty(const TQString&)),
+ this, TQ_SLOT(update(const TQString&)));
+ TQObject::connect( m_pDirWatch, TQ_SIGNAL(created(const TQString&)),
+ this, TQ_SLOT(update(const TQString&)));
+ TQObject::connect( m_pDirWatch, TQ_SIGNAL(deleted(const TQString&)),
+ this, TQ_SLOT(dirDeleted(const TQString&)));
// For each resource
for( TQStringList::ConstIterator it = m_allResourceDirs.begin();
@@ -480,7 +480,7 @@ void Kded::recreate(bool initial)
if (!initial)
{
updateDirWatch(); // Update tree first, to be sure to miss nothing.
- runBuildSycoca(this, TQT_SLOT(recreateDone()));
+ runBuildSycoca(this, TQ_SLOT(recreateDone()));
}
else
{
@@ -491,7 +491,7 @@ void Kded::recreate(bool initial)
if(delayedCheck)
{
// do a proper tdesycoca check after a delay
- TQTimer::singleShot( 60000, this, TQT_SLOT( runDelayedCheck()));
+ TQTimer::singleShot( 60000, this, TQ_SLOT( runDelayedCheck()));
m_needDelayedCheck = true;
delayedCheck = false;
}
@@ -667,9 +667,9 @@ KUpdateD::KUpdateD()
{
m_pDirWatch = new KDirWatch;
m_pTimer = new TQTimer;
- connect(m_pTimer, TQT_SIGNAL(timeout()), this, TQT_SLOT(runKonfUpdate()));
- TQObject::connect( m_pDirWatch, TQT_SIGNAL(dirty(const TQString&)),
- this, TQT_SLOT(slotNewUpdateFile()));
+ connect(m_pTimer, TQ_SIGNAL(timeout()), this, TQ_SLOT(runKonfUpdate()));
+ TQObject::connect( m_pDirWatch, TQ_SIGNAL(dirty(const TQString&)),
+ this, TQ_SLOT(slotNewUpdateFile()));
TQStringList dirs = TDEGlobal::dirs()->findDirs("data", "tdeconf_update");
for( TQStringList::ConstIterator it = dirs.begin();
@@ -704,7 +704,7 @@ void KUpdateD::slotNewUpdateFile()
KHostnameD::KHostnameD(int pollInterval)
{
m_Timer.start(pollInterval, false /* repetitive */ );
- connect(&m_Timer, TQT_SIGNAL(timeout()), this, TQT_SLOT(checkHostname()));
+ connect(&m_Timer, TQ_SIGNAL(timeout()), this, TQ_SLOT(checkHostname()));
checkHostname();
}
@@ -785,7 +785,7 @@ public:
if( Kded::self()->newStartup())
Kded::self()->initModules();
else
- TQTimer::singleShot(500, Kded::self(), TQT_SLOT(initModules()));
+ TQTimer::singleShot(500, Kded::self(), TQ_SLOT(initModules()));
} else
runBuildSycoca();
@@ -955,8 +955,8 @@ extern "C" KDE_EXPORT int kdemain(int argc, char *argv[])
(void) new KHostnameD(HostnamePollInterval); // Watch for hostname changes
DCOPClient *client = kapp->dcopClient();
- TQObject::connect(client, TQT_SIGNAL(applicationRemoved(const TQCString&)),
- kded, TQT_SLOT(slotApplicationRemoved(const TQCString&)));
+ TQObject::connect(client, TQ_SIGNAL(applicationRemoved(const TQCString&)),
+ kded, TQ_SLOT(slotApplicationRemoved(const TQCString&)));
client->setNotifications(true);
client->setDaemonMode( true );
diff --git a/kded/kdedmodule.cpp b/kded/kdedmodule.cpp
index 61da755b3..230f08db2 100644
--- a/kded/kdedmodule.cpp
+++ b/kded/kdedmodule.cpp
@@ -41,7 +41,7 @@ KDEDModule::KDEDModule(const TQCString &name) : TQObject(), DCOPObject(name)
d = new KDEDModulePrivate;
d->objMap = 0;
d->timeout = 0;
- connect(&(d->timer), TQT_SIGNAL(timeout()), this, TQT_SLOT(idle()));
+ connect(&(d->timer), TQ_SIGNAL(timeout()), this, TQ_SLOT(idle()));
}
KDEDModule::~KDEDModule()
diff --git a/kded/tdebuildsycoca.cpp b/kded/tdebuildsycoca.cpp
index 14ec8a89f..5917bf762 100644
--- a/kded/tdebuildsycoca.cpp
+++ b/kded/tdebuildsycoca.cpp
@@ -376,8 +376,8 @@ bool KBuildSycoca::build()
if (!m_trackId.isEmpty())
g_vfolder->setTrackId(m_trackId);
- connect(g_vfolder, TQT_SIGNAL(newService(const TQString &, KService **)),
- this, TQT_SLOT(slotCreateEntry(const TQString &, KService **)));
+ connect(g_vfolder, TQ_SIGNAL(newService(const TQString &, KService **)),
+ this, TQ_SLOT(slotCreateEntry(const TQString &, KService **)));
VFolderMenu::SubMenu *kdeMenu = g_vfolder->parseMenu("tde-applications.menu", true);
@@ -390,8 +390,8 @@ bool KBuildSycoca::build()
(void) existingResourceDirs();
*g_allResourceDirs += g_vfolder->allDirectories();
- disconnect(g_vfolder, TQT_SIGNAL(newService(const TQString &, KService **)),
- this, TQT_SLOT(slotCreateEntry(const TQString &, KService **)));
+ disconnect(g_vfolder, TQ_SIGNAL(newService(const TQString &, KService **)),
+ this, TQ_SLOT(slotCreateEntry(const TQString &, KService **)));
if (g_changed || !g_allEntries)
{
@@ -790,8 +790,8 @@ extern "C" KDE_EXPORT int kdemain(int argc, char **argv)
while (dcopClient->isApplicationRegistered(appName))
{
WaitForSignal *obj = new WaitForSignal;
- obj->connect(dcopClient, TQT_SIGNAL(applicationRemoved(const TQCString &)),
- TQT_SLOT(deleteLater()));
+ obj->connect(dcopClient, TQ_SIGNAL(applicationRemoved(const TQCString &)),
+ TQ_SLOT(deleteLater()));
kapp->eventLoop()->enterLoop();
}
dcopClient->setNotifications( false );