From 359640943bcf155faa9a067dde9e00a123276290 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 13 Feb 2012 17:43:39 -0600 Subject: Automated update from Qt3 --- doc/html/signalsandslots.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'doc/html/signalsandslots.html') diff --git a/doc/html/signalsandslots.html b/doc/html/signalsandslots.html index 0421e7bc..4b4059eb 100644 --- a/doc/html/signalsandslots.html +++ b/doc/html/signalsandslots.html @@ -109,7 +109,7 @@ mechanism.

     class Foo : public TQObject
     {
-        Q_OBJECT
+        TQ_OBJECT
     public:
         Foo();
         int value() const { return val; }
@@ -127,7 +127,7 @@ state, but in addition it has support for component programming using
 signals and slots: this class can tell the outside world that its state
 has changed by emitting a signal, valueChanged(), and it has
 a slot which other objects can send signals to.
-

All classes that contain signals or slots must mention Q_OBJECT in +

All classes that contain signals or slots must mention TQ_OBJECT in their declaration.

Slots are implemented by the application programmer. Here is a possible implementation of Foo::setValue(): @@ -283,10 +283,10 @@ knowledge, via TQFrame and declarations.

     {
-        Q_OBJECT
+        TQ_OBJECT
 
-

Q_OBJECT is expanded by the preprocessor to declare several member +

TQ_OBJECT is expanded by the preprocessor to declare several member functions that are implemented by the moc; if you get compiler errors along the lines of "virtual function TQButton::className not defined" you have probably forgotten to run the moc or to -- cgit v1.2.1