summaryrefslogtreecommitdiffstats
path: root/doc/moc.doc
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-10-20 20:01:48 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-10-20 20:01:48 -0500
commit7608f0043b6dfc0b1adcaa8912793e1d3fe7b636 (patch)
tree7ffddfefaf990c9a33ee6a0f317b9133dc58305c /doc/moc.doc
parentedec8306fb4f7dab5e6b0f368e889581f38ea3bc (diff)
downloadtqt3-7608f0043b6dfc0b1adcaa8912793e1d3fe7b636.tar.gz
tqt3-7608f0043b6dfc0b1adcaa8912793e1d3fe7b636.zip
Automated update from Qt3
Diffstat (limited to 'doc/moc.doc')
-rw-r--r--doc/moc.doc26
1 files changed, 13 insertions, 13 deletions
diff --git a/doc/moc.doc b/doc/moc.doc
index 53f36f28d..7aa23b601 100644
--- a/doc/moc.doc
+++ b/doc/moc.doc
@@ -89,8 +89,8 @@ like this:
\endcode
In addition to the signals and slots shown above, the moc also
-implements object properties as in the next example. The Q_PROPERTY
-macro declares an object property, while Q_ENUMS declares a list of
+implements object properties as in the next example. The TQ_PROPERTY
+macro declares an object property, while TQ_ENUMS declares a list of
enumeration types within the class to be usable inside the
\link properties.html property system\endlink. In this particular
case we declare a property of the enumeration type \c Priority that is
@@ -101,8 +101,8 @@ function \c setPriority().
class MyClass : public QObject
{
TQ_OBJECT
- Q_PROPERTY( Priority priority READ priority WRITE setPriority )
- Q_ENUMS( Priority )
+ TQ_PROPERTY( Priority priority READ priority WRITE setPriority )
+ TQ_ENUMS( Priority )
public:
MyClass( QObject * parent=0, const char * name=0 );
~MyClass();
@@ -113,17 +113,17 @@ function \c setPriority().
};
\endcode
-Properties can be modified in subclasses with the Q_OVERRIDE
-macro. The Q_SETS macro declares enums that are to be used as
-sets, i.e. OR'ed together. Another macro, Q_CLASSINFO, can be used to
+Properties can be modified in subclasses with the TQ_OVERRIDE
+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:
\code
class MyClass : public QObject
{
TQ_OBJECT
- Q_CLASSINFO( "Author", "Oscar Peterson")
- Q_CLASSINFO( "Status", "Active")
+ TQ_CLASSINFO( "Author", "Oscar Peterson")
+ TQ_CLASSINFO( "Status", "Active")
public:
MyClass( QObject * parent=0, const char * name=0 );
~MyClass();
@@ -484,8 +484,8 @@ illegal syntax:
TQ_OBJECT
public:
...
- Q_PROPERTY( Priority priority READ priority WRITE setPriority ) // WRONG
- Q_ENUMS( Priority ) // WRONG
+ TQ_PROPERTY( Priority priority READ priority WRITE setPriority ) // WRONG
+ TQ_ENUMS( Priority ) // WRONG
enum Priority { High, Low, VeryHigh, VeryLow };
void setPriority( Priority );
Priority priority() const;
@@ -499,8 +499,8 @@ beginning of the class declaration, right after TQ_OBJECT:
\code
class SomeClass : public QObject {
TQ_OBJECT
- Q_PROPERTY( Priority priority READ priority WRITE setPriority )
- Q_ENUMS( Priority )
+ TQ_PROPERTY( Priority priority READ priority WRITE setPriority )
+ TQ_ENUMS( Priority )
public:
...
enum Priority { High, Low, VeryHigh, VeryLow };