diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-10-13 18:02:18 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-11-16 21:32:11 +0900 |
commit | 83e7d90131a60206a219edf4a2ba9e570c689268 (patch) | |
tree | 46580d5604e909a3b3699b4e27201bcd66f3c18f /tde-i18n-de/docs/tdemultimedia/artsbuilder | |
parent | d3f6a5fb3fca54c14196ef9d16eed9a37e9516e9 (diff) | |
download | tde-i18n-83e7d90131a60206a219edf4a2ba9e570c689268.tar.gz tde-i18n-83e7d90131a60206a219edf4a2ba9e570c689268.zip |
Replace QObject, QWidget, QImage, QPair, QRgb, QColor, QChar, QString, QIODevice with TQ* version
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 241e0082f7b9ccadaeed0ef43a1c9ebb9b4fe840)
Diffstat (limited to 'tde-i18n-de/docs/tdemultimedia/artsbuilder')
-rw-r--r-- | tde-i18n-de/docs/tdemultimedia/artsbuilder/detail.docbook | 2 | ||||
-rw-r--r-- | tde-i18n-de/docs/tdemultimedia/artsbuilder/mcop.docbook | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tde-i18n-de/docs/tdemultimedia/artsbuilder/detail.docbook b/tde-i18n-de/docs/tdemultimedia/artsbuilder/detail.docbook index dc874b70bbe..075e1770ee9 100644 --- a/tde-i18n-de/docs/tdemultimedia/artsbuilder/detail.docbook +++ b/tde-i18n-de/docs/tdemultimedia/artsbuilder/detail.docbook @@ -562,7 +562,7 @@ public: Arts::Synth_PLAY p; string s = p.toString(); </programlisting> <para> is something different than dereferencing a NULL pointer. You didn't tell the object at all what it is, and now you try to use it. The guess here is that you want to have a new local instance of a Arts::Synth_PLAY object. Of course you might have wanted something else (like creating the object somewhere else, or using an existing remote object). However, it is a convenient short cut to creating objects. Lazy creation will not work once you assigned something else (like a null reference). </para> <para> The equivalent C++ terms would be <programlisting> - QWidget* w; + TQWidget* w; w->show(); </programlisting> which obviously in C++ just plain segfaults. So this is different here. This lazy creation is tricky especially as not necessarily an implementation exists for your interface. </para> <para> For instance, consider an abstract thing like a Arts::PlayObject. There are certainly concrete PlayObjects like those for playing mp3s or wavs, but <programlisting> Arts::PlayObject po; diff --git a/tde-i18n-de/docs/tdemultimedia/artsbuilder/mcop.docbook b/tde-i18n-de/docs/tdemultimedia/artsbuilder/mcop.docbook index 9fdef47ba8e..c29898adaf9 100644 --- a/tde-i18n-de/docs/tdemultimedia/artsbuilder/mcop.docbook +++ b/tde-i18n-de/docs/tdemultimedia/artsbuilder/mcop.docbook @@ -866,7 +866,7 @@ struct TypeDef { <para> There is no need to base a middleware for multimedia on &Qt;. Deciding so, and using all that nice &Qt;-streaming and stuff, will easily lead to the middleware becoming a &Qt;-only (or rather &kde;-only) thing. I mean: as soon as I'll see the GNOMEs using &DCOP;, too, or something like that, I am certainly proven wrong. </para> -<para> While I do know that &DCOP; basically doesn't know about the data types it sends, so that you could use &DCOP; without using &Qt;, look at how it is used in daily &kde; usage: people send types like <classname>QString</classname>, <classname>QRect</classname>, <classname>QPixmap</classname>, <classname>QCString</classname>, ..., around. These use &Qt;-serialization. So if somebody choose to support &DCOP; in a GNOME program, he would either have to claim to use <classname>QString</classname>,... types (although he doesn't do so), and emulate the way &Qt; does the streaming, or he would send other string, pixmap and rect types around, and thus not be interoperable. </para> +<para> While I do know that &DCOP; basically doesn't know about the data types it sends, so that you could use &DCOP; without using &Qt;, look at how it is used in daily &kde; usage: people send types like <classname>TQString</classname>, <classname>QRect</classname>, <classname>QPixmap</classname>, <classname>QCString</classname>, ..., around. These use &Qt;-serialization. So if somebody choose to support &DCOP; in a GNOME program, he would either have to claim to use <classname>TQString</classname>,... types (although he doesn't do so), and emulate the way &Qt; does the streaming, or he would send other string, pixmap and rect types around, and thus not be interoperable. </para> <para> Well, whatever. &arts; was always intended to work with or without &kde;, with or without &Qt;, with or without X11, and maybe even with or without &Linux; (and I have even no problems with people who port it to a popular non-free operating systems). </para> |