diff options
Diffstat (limited to 'doc/signalsandslots.doc')
| -rw-r--r-- | doc/signalsandslots.doc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/signalsandslots.doc b/doc/signalsandslots.doc index 6f09eb1a6..65dfa9dfa 100644 --- a/doc/signalsandslots.doc +++ b/doc/signalsandslots.doc @@ -313,7 +313,7 @@ TQObject::className() class name\endlink. You can also check if an object \link TQObject::inherits() inherits\endlink a specific class, for example: \code - if ( widget->inherits("QButton") ) { + if ( widget->inherits("TQButton") ) { // yes, it is a push button, radio button etc. } \endcode @@ -323,14 +323,14 @@ TQObject::className() class name\endlink. You can also check if an object Here is a simple commented example (code fragments from \l tqlcdnumber.h ). \code - #include "ntqframe.h" + #include "tqframe.h" #include "tqbitarray.h" - class TQLCDNumber : public QFrame + class TQLCDNumber : public TQFrame \endcode TQLCDNumber inherits TQObject, which has most of the signal/slot -knowledge, via QFrame and TQWidget, and #include's the relevant +knowledge, via TQFrame and TQWidget, and #include's the relevant declarations. \code @@ -340,7 +340,7 @@ declarations. 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 QButton::className not defined" +along the lines of "virtual function TQButton::className not defined" you have probably forgotten to \link moc.html run the moc\endlink or to include the moc output in the link command. |
