diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-20 20:15:52 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-21 23:04:19 +0900 |
commit | 1e9fa8e06de5da7fcc268e9cccb2d6b21c5f53a3 (patch) | |
tree | 5f1bb482f68ee0f95843fbf375cd2274acdabf25 /doc/shclass.doc | |
parent | 14c414378d96f7463b989384f4a0e5dd76632b6d (diff) | |
download | tqt-1e9fa8e0.tar.gz tqt-1e9fa8e0.zip |
Rename graphics class nt* related files to equivalent tq* (part 2)
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
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; |