diff options
Diffstat (limited to 'doc/signalsandslots.doc')
| -rw-r--r-- | doc/signalsandslots.doc | 18 | 
1 files changed, 9 insertions, 9 deletions
| diff --git a/doc/signalsandslots.doc b/doc/signalsandslots.doc index 4cb22cbcf..6f09eb1a6 100644 --- a/doc/signalsandslots.doc +++ b/doc/signalsandslots.doc @@ -239,7 +239,7 @@ return types (i.e. use \c void).  A note about arguments. Our experience shows that signals and slots  are more reusable if they do \e not use special types. If \l -QScrollBar::valueChanged() were to use a special type such as the +TQScrollBar::valueChanged() were to use a special type such as the  hypothetical \c QRangeControl::Range, it could only be connected to  slots designed specifically for QRangeControl. Something as simple as  the program in \link tutorial1-05.html Tutorial #1 part 5\endlink @@ -320,16 +320,16 @@ TQObject::className() class name\endlink. You can also check if an object  \section1 A Real Example -Here is a simple commented example (code fragments from \l ntqlcdnumber.h ). +Here is a simple commented example (code fragments from \l tqlcdnumber.h ).  \code      #include "ntqframe.h"      #include "tqbitarray.h" -    class QLCDNumber : public QFrame +    class TQLCDNumber : public QFrame  \endcode -QLCDNumber inherits TQObject, which has most of the signal/slot +TQLCDNumber inherits TQObject, which has most of the signal/slot  knowledge, via QFrame and TQWidget, and #include's the relevant  declarations. @@ -346,8 +346,8 @@ include the moc output in the link command.  \code      public: -	QLCDNumber( TQWidget *parent=0, const char *name=0 ); -	QLCDNumber( uint numDigits, TQWidget *parent=0, const char *name=0 ); +	TQLCDNumber( TQWidget *parent=0, const char *name=0 ); +	TQLCDNumber( uint numDigits, TQWidget *parent=0, const char *name=0 );  \endcode  It's not obviously relevant to the moc, but if you inherit TQWidget you @@ -363,7 +363,7 @@ ignores member functions.  	void	overflow();  \endcode -QLCDNumber emits a signal when it is asked to show an impossible +TQLCDNumber emits a signal when it is asked to show an impossible  value.  If you don't care about overflow, or you know that overflow cannot @@ -387,13 +387,13 @@ slots. TQt will call both (in arbitrary order).  \endcode  A slot is a receiving function, used to get information about state -changes in other widgets. QLCDNumber uses it, as the code above +changes in other widgets. TQLCDNumber uses it, as the code above  indicates, to set the displayed number. Since \c{display()} is part  of the class's interface with the rest of the program, the slot is  public.  Several of the example programs connect the newValue() signal of a -QScrollBar to the display() slot, so the LCD number continuously shows +TQScrollBar to the display() slot, so the LCD number continuously shows  the value of the scroll bar.  Note that display() is overloaded; TQt will select the appropriate version | 
