summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/tippercanoe/synaescope.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'noatun-plugins/tippercanoe/synaescope.cpp')
-rw-r--r--noatun-plugins/tippercanoe/synaescope.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/noatun-plugins/tippercanoe/synaescope.cpp b/noatun-plugins/tippercanoe/synaescope.cpp
index 9a0fb1b..9435408 100644
--- a/noatun-plugins/tippercanoe/synaescope.cpp
+++ b/noatun-plugins/tippercanoe/synaescope.cpp
@@ -21,7 +21,7 @@
extern "C" Plugin *create_plugin()
{
- KGlobal::locale()->insertCatalogue("tippecanoe");
+ TDEGlobal::locale()->insertCatalogue("tippecanoe");
return new SynaeScope();
}
@@ -45,20 +45,20 @@ SynaeScope::SynaeScope()
SynaeScope::~SynaeScope()
{
- connect(&process, TQT_SIGNAL(processExited(KProcess *)), this, TQT_SLOT(processExited(KProcess *)));
+ connect(&process, TQT_SIGNAL(processExited(TDEProcess *)), this, TQT_SLOT(processExited(TDEProcess *)));
napp->pluginMenuRemove(pluginMenuItem);
}
void SynaeScope::init()
{
- connect(&process, TQT_SIGNAL(receivedStdout(KProcess *, char *, int)), this, TQT_SLOT(read(KProcess *, char *, int)));
+ connect(&process, TQT_SIGNAL(receivedStdout(TDEProcess *, char *, int)), this, TQT_SLOT(read(TDEProcess *, char *, int)));
pluginMenuItem = napp->pluginMenuAdd(i18n("Toggle Tippecanoe"), TQT_TQOBJECT(this), TQT_SLOT(toggle(void)));
process << KStandardDirs::findExe("noatuntippecanoe.bin");
// Note that process.start() will fail if findExe fails, so there's no real need
// for two separate checks.
- if(!process.start(KProcess::NotifyOnExit, (KProcess::Communication)(KProcess::Stdin | KProcess::Stdout)))
+ if(!process.start(TDEProcess::NotifyOnExit, (TDEProcess::Communication)(TDEProcess::Stdin | TDEProcess::Stdout)))
{
KMessageBox::error(0, i18n("Unable to start noatuntippecanoe.bin. Check your installation."));
unload();
@@ -79,7 +79,7 @@ void SynaeScope::scopeEvent(float *left, float *right, int size)
}
}
-void SynaeScope::read(KProcess *, char *buf, int)
+void SynaeScope::read(TDEProcess *, char *buf, int)
{
TQString num = TQString::fromLatin1(buf);
num = num.left(num.find(TQRegExp("\\s")));
@@ -87,7 +87,7 @@ void SynaeScope::read(KProcess *, char *buf, int)
embed->embed(id);
}
-void SynaeScope::processExited(KProcess *)
+void SynaeScope::processExited(TDEProcess *)
{
unload();
}