summaryrefslogtreecommitdiffstats
path: root/doc/html/properties.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/properties.html')
-rw-r--r--doc/html/properties.html18
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/html/properties.html b/doc/html/properties.html
index 388fc48b1..d296b25ba 100644
--- a/doc/html/properties.html
+++ b/doc/html/properties.html
@@ -41,7 +41,7 @@ features like <tt>__property</tt> or <tt>[property]</tt>. Our solution works wit
on the meta-object system that also provides object communication
through <a href="signalsandslots.html">signals and slots</a>.
<p> The <tt>TQ_PROPERTY</tt> macro in a class declaration declares a
-property. Properties can only be declared in classes that inherit <a href="ntqobject.html">TQObject</a>. A second macro, <tt>TQ_OVERRIDE</tt>, can be used to override some
+property. Properties can only be declared in classes that inherit <a href="tqobject.html">TQObject</a>. A second macro, <tt>TQ_OVERRIDE</tt>, can be used to override some
aspects of an inherited property in a subclass. (See <a href="#override">TQ_OVERRIDE</a>.)
<p> To the outer world, a property appears to be similar to a data member.
But properties have several features that distinguish them from
@@ -65,7 +65,7 @@ press its own buttons, but a GUI design tool can't press buttons.
<p> The read, write, and reset functions must be public member functions
from the class in which the property is defined.
<p> Properties can be read and written through generic functions in
-<a href="ntqobject.html">TQObject</a> without knowing anything about the class in use. These two
+<a href="tqobject.html">TQObject</a> without knowing anything about the class in use. These two
function calls are equivalent:
<p> <pre>
// TQButton *b and TQObject *o point to the same button
@@ -76,21 +76,21 @@ function calls are equivalent:
<p> Equivalent, that is, except that the first is faster, and provides
much better diagnostics at compile time. When practical, the first is
better. However, since you can get a list of all available properties
-for any TQObject through its <a href="ntqmetaobject.html">TQMetaObject</a>, <a href="ntqobject.html#setProperty">TQObject::setProperty</a>()
+for any TQObject through its <a href="ntqmetaobject.html">TQMetaObject</a>, <a href="tqobject.html#setProperty">TQObject::setProperty</a>()
can give you control over classes that weren't available at compile
time.
-<p> As well as <a href="ntqobject.html#setProperty">TQObject::setProperty</a>(), there is a corresponding <a href="ntqobject.html#property">TQObject::property</a>() function. <a href="ntqmetaobject.html#propertyNames">TQMetaObject::propertyNames</a>() returns
+<p> As well as <a href="tqobject.html#setProperty">TQObject::setProperty</a>(), there is a corresponding <a href="tqobject.html#property">TQObject::property</a>() function. <a href="ntqmetaobject.html#propertyNames">TQMetaObject::propertyNames</a>() returns
the names of all available properties. <a href="ntqmetaobject.html#property">TQMetaObject::property</a>()
returns the property data for a named property: a <a href="qmetaproperty.html">TQMetaProperty</a>
object.
<p> Here's a simple example that shows the most important property
functions in use:
<p> <pre>
- class MyClass : public <a href="ntqobject.html">TQObject</a>
+ class MyClass : public <a href="tqobject.html">TQObject</a>
{
<a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
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 };
@@ -130,13 +130,13 @@ is a <a href="ntqvariant.html">TQVariant</a> whose value is the entire list or m
<p> Enumeration types are registered with the <tt>TQ_ENUMS</tt> macro. Here's the
final class declaration including the property related declarations:
<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 };
@@ -177,7 +177,7 @@ through the meta object, see <a href="ntqmetaobject.html#classInfo">TQMetaObject
<p> <a name="override"></a>
<h2> TQ_OVERRIDE
</h2>
-<a name="1"></a><p> When you inherit a <a href="ntqobject.html">TQObject</a> subclass you may wish to override some
+<a name="1"></a><p> When you inherit a <a href="tqobject.html">TQObject</a> subclass you may wish to override some
aspects of some of the class's properties.
<p> For example, in <a href="ntqwidget.html">TQWidget</a> we have the autoMask property defined like
this: