summaryrefslogtreecommitdiffstats
path: root/doc/layout.doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/layout.doc')
-rw-r--r--doc/layout.doc22
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/layout.doc b/doc/layout.doc
index fa8d95626..f4817771a 100644
--- a/doc/layout.doc
+++ b/doc/layout.doc
@@ -236,7 +236,7 @@ layout, you should reimplement the following TQWidget member functions:
\list
\i TQWidget::sizeHint() returns the preferred size of the widget.
\i TQWidget::minimumSizeHint() returns the smallest size the widget can have.
-\i TQWidget::sizePolicy() returns a \l QSizePolicy; a value describing
+\i TQWidget::sizePolicy() returns a \l TQSizePolicy; a value describing
the space requirements of the widget.
\endlist
@@ -246,7 +246,7 @@ Multiple calls to updateGeometry() will only cause one recalculation.
If the preferred height of your widget depends on its actual width
(e.g. a label with automatic word-breaking), set the \link
-QSizePolicy::hasHeightForWidth() hasHeightForWidth\endlink() flag in
+TQSizePolicy::hasHeightForWidth() hasHeightForWidth\endlink() flag in
\link TQWidget::sizePolicy() sizePolicy\endlink(), and reimplement \l
TQWidget::heightForWidth().
@@ -333,8 +333,8 @@ public:
~CardLayout();
void addItem(QLayoutItem *item);
- QSize sizeHint() const;
- QSize minimumSize() const;
+ TQSize sizeHint() const;
+ TQSize minimumSize() const;
QLayoutIterator iterator();
void setGeometry(const QRect &rect);
@@ -462,24 +462,24 @@ implementation. The sizes returned by both functions should include
spacing(), but not margin().
\code
-QSize CardLayout::sizeHint() const
+TQSize CardLayout::sizeHint() const
{
- QSize s( 0, 0 );
+ TQSize s( 0, 0 );
int n = list.count();
if ( n > 0 )
- s = QSize( 100, 70 ); // start with a nice default size
+ s = TQSize( 100, 70 ); // start with a nice default size
TQPtrListIterator<QLayoutItem> it( list );
QLayoutItem *item;
while ( (item = it.current()) != 0 ) {
++it;
s = s.expandedTo( item->minimumSize() );
}
- return s + n * QSize( spacing(), spacing() );
+ return s + n * TQSize( spacing(), spacing() );
}
-QSize CardLayout::minimumSize() const
+TQSize CardLayout::minimumSize() const
{
- QSize s( 0, 0 );
+ TQSize s( 0, 0 );
int n = list.count();
TQPtrListIterator<QLayoutItem> it( list );
QLayoutItem *item;
@@ -487,7 +487,7 @@ QSize CardLayout::minimumSize() const
++it;
s = s.expandedTo( item->minimumSize() );
}
- return s + n * QSize( spacing(), spacing() );
+ return s + n * TQSize( spacing(), spacing() );
}
\endcode