summaryrefslogtreecommitdiffstats
path: root/parts/documentation/documentation_part.cpp
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/documentation/documentation_part.cpp
parentbdeb717137b6fc8693198008ccb97f8213973416 (diff)
downloadtdevelop-95e28f5bcadbf0ac052c4f29d77b4ab5e6648d1b.tar.gz
tdevelop-95e28f5bcadbf0ac052c4f29d77b4ab5e6648d1b.zip
Rename KApplication to TDEApplication to avoid conflicts with KDE4
Diffstat (limited to 'parts/documentation/documentation_part.cpp')
-rw-r--r--parts/documentation/documentation_part.cpp14
1 files changed, 7 insertions, 7 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;