diff options
Diffstat (limited to 'doc/html/moc.html')
-rw-r--r-- | doc/html/moc.html | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/doc/html/moc.html b/doc/html/moc.html index f7c388591..67f353c4d 100644 --- a/doc/html/moc.html +++ b/doc/html/moc.html @@ -55,11 +55,11 @@ use templates for signals and slots?</a>. <a name="1"></a><p> The moc is typically used with an input file containing class declarations like this: <p> <pre> - class MyClass : public <a href="ntqobject.html">TQObject</a> + class MyClass : public <a href="tqobject.html">TQObject</a> { TQ_OBJECT public: - MyClass( <a href="ntqobject.html">TQObject</a> * parent=0, const char * name=0 ); + MyClass( <a href="tqobject.html">TQObject</a> * parent=0, const char * name=0 ); ~MyClass(); signals: @@ -80,13 +80,13 @@ case we declare a property of the enumeration type <tt>Priority</tt> that is also called "priority" and has a get function <tt>priority()</tt> and a set function <tt>setPriority()</tt>. <p> <pre> - class MyClass : public <a href="ntqobject.html">TQObject</a> + class MyClass : public <a href="tqobject.html">TQObject</a> { TQ_OBJECT TQ_PROPERTY( Priority priority READ priority WRITE setPriority ) TQ_ENUMS( Priority ) public: - MyClass( <a href="ntqobject.html">TQObject</a> * parent=0, const char * name=0 ); + MyClass( <a href="tqobject.html">TQObject</a> * parent=0, const char * name=0 ); ~MyClass(); enum Priority { High, Low, VeryHigh, VeryLow }; @@ -100,13 +100,13 @@ macro. The TQ_SETS macro declares enums that are to be used as sets, i.e. OR'ed together. Another macro, TQ_CLASSINFO, can be used to attach additional name/value-pairs to the class' meta object: <p> <pre> - class MyClass : public <a href="ntqobject.html">TQObject</a> + class MyClass : public <a href="tqobject.html">TQObject</a> { TQ_OBJECT TQ_CLASSINFO( "Author", "Oscar Peterson") TQ_CLASSINFO( "Status", "Active") public: - MyClass( <a href="ntqobject.html">TQObject</a> * parent=0, const char * name=0 ); + MyClass( <a href="tqobject.html">TQObject</a> * parent=0, const char * name=0 ); ~MyClass(); }; </pre> @@ -265,13 +265,13 @@ templates cannot have signals or slots. Here is an example: <p> Less importantly, the following constructs are illegal. All of them have alternatives which we think are usually better, so removing these limitations is not a high priority for us. -<p> <h3> Multiple inheritance requires <a href="ntqobject.html">TQObject</a> to be first +<p> <h3> Multiple inheritance requires <a href="tqobject.html">TQObject</a> to be first </h3> <a name="5-1"></a><p> If you are using multiple inheritance, moc assumes that the <em>first</em> inherited class is a subclass of TQObject. Also, be sure that <em>only</em> the first inherited class is a TQObject. <p> <pre> - class SomeClass : public <a href="ntqobject.html">TQObject</a>, public OtherClass { + class SomeClass : public <a href="tqobject.html">TQObject</a>, public OtherClass { ... }; </pre> @@ -285,7 +285,7 @@ is a TQObject.) signal/slot arguments, we think inheritance is a better alternative. Here is an example of illegal syntax: <p> <pre> - class SomeClass : public <a href="ntqobject.html">TQObject</a> { + class SomeClass : public <a href="tqobject.html">TQObject</a> { TQ_OBJECT ... public slots: @@ -298,7 +298,7 @@ Here is an example of illegal syntax: <pre> typedef void (*ApplyFunctionType)( List *, void * ); - class SomeClass : public <a href="ntqobject.html">TQObject</a> { + class SomeClass : public <a href="tqobject.html">TQObject</a> { TQ_OBJECT ... public slots: @@ -315,7 +315,7 @@ placed in signals or slots sections. Put them in the private, protected or public sections instead. Here is an example of the illegal syntax: <p> <pre> - class SomeClass : public <a href="ntqobject.html">TQObject</a> { + class SomeClass : public <a href="tqobject.html">TQObject</a> { TQ_OBJECT ... signals: @@ -356,7 +356,7 @@ will not work in signals and slots. Here is an illegal example: #define SIGNEDNESS(a) a #endif - class Whatever : public <a href="ntqobject.html">TQObject</a> { + class Whatever : public <a href="tqobject.html">TQObject</a> { ... signals: void someSignal( SIGNEDNESS(int) ); @@ -394,11 +394,11 @@ that it happens to work in some cases). Put them in private, protected or public sections, where they belong. Here is an example of the illegal syntax: <p> <pre> - class SomeClass : public <a href="ntqobject.html">TQObject</a> { + class SomeClass : public <a href="tqobject.html">TQObject</a> { TQ_OBJECT public slots: - SomeClass( <a href="ntqobject.html">TQObject</a> *parent, const char *name ) - : <a href="ntqobject.html">TQObject</a>( parent, name ) { } // WRONG + SomeClass( <a href="tqobject.html">TQObject</a> *parent, const char *name ) + : <a href="tqobject.html">TQObject</a>( parent, name ) { } // WRONG ... }; </pre> @@ -412,7 +412,7 @@ does not work as expected. The moc will complain that it can neither find the functions nor resolve the type. Here is an example of the illegal syntax: <p> <pre> - class SomeClass : public <a href="ntqobject.html">TQObject</a> { + class SomeClass : public <a href="tqobject.html">TQObject</a> { TQ_OBJECT public: ... @@ -428,7 +428,7 @@ illegal syntax: <p> Work around this limitation by declaring all properties at the beginning of the class declaration, right after TQ_OBJECT: <p> <pre> - class SomeClass : public <a href="ntqobject.html">TQObject</a> { + class SomeClass : public <a href="tqobject.html">TQObject</a> { TQ_OBJECT TQ_PROPERTY( Priority priority READ priority WRITE setPriority ) TQ_ENUMS( Priority ) |