diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-02 21:37:22 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-07-06 11:24:55 +0900 |
commit | 7552c6d73043b1040139033f6864db48ae5446cf (patch) | |
tree | f90d24d072dd3ee6a3f909bf7778abc7669f03ef /doc/layout.doc | |
parent | c113da2069b66130f67a0f27c699e1cec83588a5 (diff) | |
download | tqt-7552c6d7.tar.gz tqt-7552c6d7.zip |
Rename main window nt* related files to equivalent tq*. The file
"ntqsession.h" was totally unnecessary and has been removed.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/layout.doc')
-rw-r--r-- | doc/layout.doc | 22 |
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 |