Don't use obsolete header kapp.h and fix some renames

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/59/head
Michele Calgaro 2 weeks ago
parent ba273659a5
commit 35a1f25329
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -1276,7 +1276,7 @@ As an example, we have a look at the "New File" button in a generic application:
</para> </para>
<para> <para>
There, the part i18n("New File") provides a tool-tip message. It is enclosed by the i18n() There, the part i18n("New File") provides a tool-tip message. It is enclosed by the i18n()
macro provided by kapp.h to translate the tool-tip towards the currently selected language. macro provided by tdeapplication.h to translate the tool-tip towards the currently selected language.
</para> </para>
<para> <para>
Tool-tips can also be added to any custom widget by using the <classname>QToolTip</classname> Tool-tips can also be added to any custom widget by using the <classname>QToolTip</classname>

@ -2,10 +2,10 @@
* Copyright (C) %{YEAR} %{AUTHOR} <%{EMAIL}> * Copyright (C) %{YEAR} %{AUTHOR} <%{EMAIL}>
*/ */
#include <kapp.h> #include <tdeapplication.h>
#include <dcopclient.h> #include <dcopclient.h>
#include <qdatastream.h> #include <tqdatastream.h>
#include <qstring.h> #include <tqstring.h>
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
@ -16,8 +16,8 @@ int main(int argc, char **argv)
client->attach(); client->attach();
// do a 'send' for now // do a 'send' for now
QByteArray data; TQByteArray data;
QDataStream ds(data, IO_WriteOnly); TQDataStream ds(data, IO_WriteOnly);
if (argc > 1) if (argc > 1)
ds << TQString(argv[1]); ds << TQString(argv[1]);
else else

Loading…
Cancel
Save