diff options
Diffstat (limited to 'doc/signalsandslots.doc')
-rw-r--r-- | doc/signalsandslots.doc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/doc/signalsandslots.doc b/doc/signalsandslots.doc index e58e199b5..099fdf70a 100644 --- a/doc/signalsandslots.doc +++ b/doc/signalsandslots.doc @@ -1,6 +1,6 @@ /**************************************************************************** ** -** Explanation of moc and the meta object system +** Explanation of tqmoc and the meta object system ** ** Copyright (C) 1992-2008 Trolltech ASA. All rights reserved. ** @@ -202,11 +202,11 @@ connection between them initially. The preprocessor changes or removes the \c{signals}, \c{slots} and \c{emit} keywords so that the compiler is presented with standard C++. -Run the \link moc.html moc\endlink on class definitions that contain +Run the \link tqmoc.html tqmoc\endlink on class definitions that contain signals or slots. This produces a C++ source file which should be compiled and linked with the other object files for the application. If you use \link qmake-manual.book qmake\endlink, the makefile rules to -automatically invoke the \link moc.html moc\endlink will be added to +automatically invoke the \link tqmoc.html tqmoc\endlink will be added to your makefile for you. \section1 Signals @@ -233,7 +233,7 @@ If several slots are connected to one signal, the slots will be executed one after the other, in an arbitrary order, when the signal is emitted. -Signals are automatically generated by the \link moc.html moc\endlink +Signals are automatically generated by the \link tqmoc.html tqmoc\endlink and must not be implemented in the \c .cpp file. They can never have return types (i.e. use \c void). @@ -301,7 +301,7 @@ users won't even notice. \section1 Meta Object Information -The meta object compiler (\link moc.html moc\endlink) parses the class +The meta object compiler (\link tqmoc.html tqmoc\endlink) parses the class declaration in a C++ file and generates C++ code that initializes the meta object. The meta object contains the names of all the signal and slot members, as well as pointers to these functions. (For more @@ -339,10 +339,10 @@ declarations. \endcode TQ_OBJECT is expanded by the preprocessor to declare several member -functions that are implemented by the moc; if you get compiler errors +functions that are implemented by tqmoc; if you get compiler errors 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. +you have probably forgotten to \link tqmoc.html run tqmoc\endlink or to +include tqmoc output in the link command. \code public: @@ -350,12 +350,12 @@ include the moc output in the link command. 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 +It's not obviously relevant to tqmoc, but if you inherit TQWidget you almost certainly want to have the \e{parent} and \e{name} arguments in your constructors, and pass them to the parent constructor. -Some destructors and member functions are omitted here; the moc +Some destructors and member functions are omitted here; tqmoc ignores member functions. \code |