From 10308be19ef7fa44699562cc75946e7ea1fdf6b9 Mon Sep 17 00:00:00 2001 From: tpearson Date: Fri, 7 Jan 2011 03:45:53 +0000 Subject: Revert automated changes Sorry guys, they are just not ready for prime time Work will continue as always git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1212479 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- dcop/HOWTO | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'dcop/HOWTO') diff --git a/dcop/HOWTO b/dcop/HOWTO index 12a7f996e..8609021c0 100644 --- a/dcop/HOWTO +++ b/dcop/HOWTO @@ -190,7 +190,7 @@ Receiving Data via DCOP: Currently the only real way to receive data from DCOP is to multiply inherit from the normal class that you are inheriting (usually some -sort of QWidget subclass or TQObject) as well as the DCOPObject class. +sort of QWidget subclass or QObject) as well as the DCOPObject class. DCOPObject provides one very important method: DCOPObject::process(). This is a pure virtual method that you must implement in order to process DCOP messages that you receive. It takes a function @@ -385,7 +385,7 @@ but virtual, not pure virtual. Example: -class MyClass: public TQObject, virtual public MyInterface +class MyClass: public QObject, virtual public MyInterface { Q_OBJECT @@ -397,7 +397,7 @@ class MyClass: public TQObject, virtual public MyInterface QRect mySynchronousMethod(); }; -Note: (Qt issue) Remember that if you are inheriting from TQObject, you must +Note: (Qt issue) Remember that if you are inheriting from QObject, you must place it first in the list of inherited classes. In the implementation of your class' ctor, you must explicitly initialize @@ -408,7 +408,7 @@ the interface which your are implementing. Example: MyClass::MyClass() - : TQObject(), + : QObject(), DCOPObject("MyInterface") { // whatever... @@ -429,7 +429,7 @@ It is not necessary (though very clean) to define an interface as an abstract class of its own, like we did in the example above. We could just as well have defined a k_dcop section directly within MyClass: -class MyClass: public TQObject, virtual public DCOPObject +class MyClass: public QObject, virtual public DCOPObject { Q_OBJECT K_DCOP -- cgit v1.2.1