diff options
Diffstat (limited to 'doc/html/properties.html')
-rw-r--r-- | doc/html/properties.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/html/properties.html b/doc/html/properties.html index 51ab9e86f..41ebe0210 100644 --- a/doc/html/properties.html +++ b/doc/html/properties.html @@ -68,8 +68,8 @@ from the class in which the property is defined. function calls are equivalent: <p> <pre> // TQButton *b and TQObject *o point to the same button - b->setDown( TRUE ); - o->setProperty( "down", TRUE ); + b->setDown( true ); + o->setProperty( "down", true ); </pre> <p> Equivalent, that is, except that the first is faster, and provides @@ -154,16 +154,16 @@ enum is best handled with <tt>TQ_SETS</tt>, rather than <tt>TQ_ENUMS</tt>. state (which may have changed since initialization). The function must return void and take no arguments. <p> <tt>DESIGNABLE</tt> declares whether this property is suitable for -modification by a GUI design tool. The default is <tt>TRUE</tt> for -writable properties; otherwise <tt>FALSE</tt>. Instead of <tt>TRUE</tt> or <tt>FALSE</tt>, you can specify a boolean member function. +modification by a GUI design tool. The default is <tt>true</tt> for +writable properties; otherwise <tt>false</tt>. Instead of <tt>true</tt> or <tt>false</tt>, you can specify a boolean member function. <p> <tt>SCRIPTABLE</tt> declares whether this property is suited for access by a -scripting engine. The default is <tt>TRUE</tt>. Instead of <tt>TRUE</tt> or <tt>FALSE</tt>, +scripting engine. The default is <tt>true</tt>. Instead of <tt>true</tt> or <tt>false</tt>, you can specify a boolean member function. <p> <tt>STORED</tt> declares whether the property's value must be remembered when storing an object's state. Stored makes only sense for writable -properties. The default value is <tt>TRUE</tt>. Technically superfluous +properties. The default value is <tt>true</tt>. Technically superfluous properties (like <a href="tqpoint.html">TQPoint</a> pos if <a href="tqrect.html">TQRect</a> geometry is already a property) -define this to be <tt>FALSE</tt>. +define this to be <tt>false</tt>. <p> Connected to the property system is an additional macro, "TQ_CLASSINFO", that can be used to attach additional name/value-pairs to a class' meta object, for example: |