diff options
Diffstat (limited to 'doc/shclass.doc')
-rw-r--r-- | doc/shclass.doc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/doc/shclass.doc b/doc/shclass.doc index 40cbc199d..b5f060742 100644 --- a/doc/shclass.doc +++ b/doc/shclass.doc @@ -146,18 +146,18 @@ An implicitly shared class has total control of its internal data. In any member functions that modify its data, it automatically detaches before modifying the data. -The QPen class, which uses implicit sharing, detaches from the shared +The TQPen class, which uses implicit sharing, detaches from the shared data in all member functions that change the internal data. Code fragment: \code - void QPen::setStyle( PenStyle s ) + void TQPen::setStyle( PenStyle s ) { detach(); // detach from common data data->style = s; // set the style member } - void QPen::detach() + void TQPen::detach() { if ( data->count != 1 ) // only if >1 reference *this = copy(); @@ -185,7 +185,7 @@ explicitly shared: \list \i \l TQBitArray -\i \l QPointArray +\i \l TQPointArray \i \l TQByteArray \i Any other instantiation of \link TQMemArray TQMemArray\<type\>\endlink \endlist @@ -210,11 +210,11 @@ The TQt classes that are implicitly shared are: \i \l TQFontMetrics \i \l TQIconSet \i \l TQMap -\i \l QPalette -\i \l QPen -\i \l QPicture -\i \l QPixmap -\i \l QRegion +\i \l TQPalette +\i \l TQPen +\i \l TQPicture +\i \l TQPixmap +\i \l TQRegion \i \l TQRegExp \i \l TQString \i \l TQStringList @@ -232,7 +232,7 @@ functions by value without concern for the copying overhead. Example: \code - QPixmap p1, p2; + TQPixmap p1, p2; p1.load( "image.bmp" ); p2 = p1; // p1 and p2 share data TQPainter paint; |