summaryrefslogtreecommitdiffstats
path: root/parts
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-20 00:24:38 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-01-20 00:24:38 -0600
commit95e28f5bcadbf0ac052c4f29d77b4ab5e6648d1b (patch)
tree4c22f2f3096672431df9180a0946c137012f3f2c /parts
parentbdeb717137b6fc8693198008ccb97f8213973416 (diff)
downloadtdevelop-95e28f5bcadbf0ac052c4f29d77b4ab5e6648d1b.tar.gz
tdevelop-95e28f5bcadbf0ac052c4f29d77b4ab5e6648d1b.zip
Rename KApplication to TDEApplication to avoid conflicts with KDE4
Diffstat (limited to 'parts')
-rw-r--r--parts/documentation/documentation_part.cpp14
-rw-r--r--parts/documentation/tools/htdig/htdigindex.cpp2
-rw-r--r--parts/tipofday/tipofday_part.cpp2
3 files changed, 9 insertions, 9 deletions
diff --git a/parts/documentation/documentation_part.cpp b/parts/documentation/documentation_part.cpp
index 82df1ad4..37bd7a40 100644
--- a/parts/documentation/documentation_part.cpp
+++ b/parts/documentation/documentation_part.cpp
@@ -623,7 +623,7 @@ TQCString DocumentationPart::startAssistant()
{
static TQCString lastAssistant = "";
- if (!lastAssistant.isEmpty() && KApplication::dcopClient()->isApplicationRegistered(lastAssistant))
+ if (!lastAssistant.isEmpty() && TDEApplication::dcopClient()->isApplicationRegistered(lastAssistant))
return lastAssistant;
const char *function = 0;
@@ -636,7 +636,7 @@ TQCString DocumentationPart::startAssistant()
TQDataStream arg(data, IO_WriteOnly);
arg << app << URLs;
- if (!KApplication::dcopClient()->call("klauncher", "klauncher", function, data, replyType, replyData))
+ if (!TDEApplication::dcopClient()->call("klauncher", "klauncher", function, data, replyType, replyData))
{
kdDebug() << "call failed" << endl;
lastAssistant = "";
@@ -665,7 +665,7 @@ TQCString DocumentationPart::startAssistant()
kdDebug() << dcopName.data() << endl;
//@fixme: is there another way to wait for the remote object to be loaded
- while (!KApplication::dcopClient()->remoteObjects(dcopName).contains("KDevDocumentation"))
+ while (!TDEApplication::dcopClient()->remoteObjects(dcopName).contains("KDevDocumentation"))
usleep(500);
}
}
@@ -697,7 +697,7 @@ void DocumentationPart::activateAssistantWindow(const TQCString &ref)
kdDebug() << "DocumentationPart::activateAssistantWindow" << endl;
TQByteArray data, replyData;
TQCString replyType;
- if (KApplication::dcopClient()->call(ref, "MainWindow", "getWinID()", data, replyType, replyData))
+ if (TDEApplication::dcopClient()->call(ref, "MainWindow", "getWinID()", data, replyType, replyData))
{
kdDebug() << " call successful " << endl;
TQDataStream reply(replyData, IO_ReadOnly);
@@ -707,7 +707,7 @@ void DocumentationPart::activateAssistantWindow(const TQCString &ref)
kdDebug() << "Win ID: " << winId << endl;
KWin::forceActiveWindow(winId);
- KApplication::dcopClient()->send(ref, "MainWindow", "show()", TQByteArray());
+ TDEApplication::dcopClient()->send(ref, "MainWindow", "show()", TQByteArray());
}
}
@@ -715,7 +715,7 @@ void DocumentationPart::callAssistant(const TQCString &interface, const TQCStrin
{
TQCString ref = startAssistant();
TQByteArray data;
- if (KApplication::dcopClient()->send(ref, interface, method, data))
+ if (TDEApplication::dcopClient()->send(ref, interface, method, data))
activateAssistantWindow(ref);
else
kdDebug() << "problem communicating with: " << ref;
@@ -727,7 +727,7 @@ void DocumentationPart::callAssistant(const TQCString &interface, const TQCStrin
TQByteArray data;
TQDataStream arg(data, IO_WriteOnly);
arg << dataStr;
- if (KApplication::dcopClient()->send(ref, interface, method, data))
+ if (TDEApplication::dcopClient()->send(ref, interface, method, data))
activateAssistantWindow(ref);
else
kdDebug() << "problem communicating with: " << ref;
diff --git a/parts/documentation/tools/htdig/htdigindex.cpp b/parts/documentation/tools/htdig/htdigindex.cpp
index 07ded01c..a728da7b 100644
--- a/parts/documentation/tools/htdig/htdigindex.cpp
+++ b/parts/documentation/tools/htdig/htdigindex.cpp
@@ -456,7 +456,7 @@ int main(int argc, char *argv[])
TDECmdLineArgs::init(argc, argv, &aboutData);
TDECmdLineArgs::addCmdLineOptions(options);
- KApplication app;
+ TDEApplication app;
KGlobal::locale()->setMainCatalogue("tdevelop");
diff --git a/parts/tipofday/tipofday_part.cpp b/parts/tipofday/tipofday_part.cpp
index 534eefe8..4bcf842d 100644
--- a/parts/tipofday/tipofday_part.cpp
+++ b/parts/tipofday/tipofday_part.cpp
@@ -46,7 +46,7 @@ TipOfDayPart::TipOfDayPart(TQObject *parent, const char *name, const TQStringLis
TQString TipOfDayPart::getFilename()
{
- KConfig * config = KApplication::kApplication()->config();
+ KConfig * config = TDEApplication::kApplication()->config();
config->setGroup("Tip of day plugin");
return config->readEntry("TipsFile", "kdevtipofday/tips");
}