diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-06 12:20:38 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-06-06 12:20:38 +0900 |
commit | 0881ed5059c46ce73e8241e6260b82b92f6d0e55 (patch) | |
tree | 6d1d4883cc07ad22b11017d0714d4c26e1ce1b94 /doc/layout.doc | |
parent | 1f0ce8533cc837aa2d4155b5fc17d2004bed0197 (diff) | |
download | tqt-0881ed5059c46ce73e8241e6260b82b92f6d0e55.tar.gz tqt-0881ed5059c46ce73e8241e6260b82b92f6d0e55.zip |
Rename ptr nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/layout.doc')
-rw-r--r-- | doc/layout.doc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/layout.doc b/doc/layout.doc index b5339909c..fa8d95626 100644 --- a/doc/layout.doc +++ b/doc/layout.doc @@ -298,7 +298,7 @@ To write your own layout class, you must define the following: \list \i A data structure to store the items handled by the layout. Each item is a \link QLayoutItem QLayoutItem\endlink. We will use a -QPtrList in this example. +TQPtrList in this example. \i \link QLayout::addItem() addItem() \endlink, how to add items to the layout. \i \link QLayout::setGeometry() setGeometry() \endlink, how to perform @@ -319,7 +319,7 @@ minimumSize\endlink(). #define CARD_H #include <ntqlayout.h> -#include <ntqptrlist.h> +#include <tqptrlist.h> class CardLayout : public QLayout { @@ -339,7 +339,7 @@ public: void setGeometry(const QRect &rect); private: - QPtrList<QLayoutItem> list; + TQPtrList<QLayoutItem> list; }; #endif @@ -373,7 +373,7 @@ constructor. In our example we do not need a destructor. class CardLayoutIterator : public QGLayoutIterator { public: - CardLayoutIterator( QPtrList<QLayoutItem> *l ) + CardLayoutIterator( TQPtrList<QLayoutItem> *l ) : idx( 0 ), list( l ) {} QLayoutItem *current() @@ -387,7 +387,7 @@ public: private: int idx; - QPtrList<QLayoutItem> *list; + TQPtrList<QLayoutItem> *list; }; \endcode @@ -436,7 +436,7 @@ void CardLayout::setGeometry( const QRect &rect ) { QLayout::setGeometry( rect ); - QPtrListIterator<QLayoutItem> it( list ); + TQPtrListIterator<QLayoutItem> it( list ); if (it.count() == 0) return; @@ -468,7 +468,7 @@ QSize CardLayout::sizeHint() const int n = list.count(); if ( n > 0 ) s = QSize( 100, 70 ); // start with a nice default size - QPtrListIterator<QLayoutItem> it( list ); + TQPtrListIterator<QLayoutItem> it( list ); QLayoutItem *item; while ( (item = it.current()) != 0 ) { ++it; @@ -481,7 +481,7 @@ QSize CardLayout::minimumSize() const { QSize s( 0, 0 ); int n = list.count(); - QPtrListIterator<QLayoutItem> it( list ); + TQPtrListIterator<QLayoutItem> it( list ); QLayoutItem *item; while ( (item = it.current()) != 0 ) { ++it; |