diff options
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; |