diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 22:04:08 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-05 22:04:08 -0600 |
commit | e02e31c8b9d854cd62cbe9799228f6e08e882773 (patch) | |
tree | 53303c981d0b20e03c5a2fc8e959fa74adcb90d1 /doc/html/layout.html | |
parent | 143f194af098d44bf0dd1ebb29e59f30ce48d523 (diff) | |
download | tqt3-e02e31c8b9d854cd62cbe9799228f6e08e882773.tar.gz tqt3-e02e31c8b9d854cd62cbe9799228f6e08e882773.zip |
Sync with latest script
Diffstat (limited to 'doc/html/layout.html')
-rw-r--r-- | doc/html/layout.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/html/layout.html b/doc/html/layout.html index 12de2a5c..749cd3c4 100644 --- a/doc/html/layout.html +++ b/doc/html/layout.html @@ -103,11 +103,11 @@ only get more space if no other widgets want the space. Of these, space is allocated to widgets with an <tt>Expanding</tt> size policy first. <li> Any widgets that are allocated less space than their minimum size (or minimum size hint if no minimum size is specified) are allocated -this minimum size they retquire. (Widgets don't have to have a minimum +this minimum size they require. (Widgets don't have to have a minimum size or minimum size hint in which case the strech factor is their determining factor.) <li> Any widgets that are allocated more space than their maximum size -are allocated the maximum size space they retquire. (Widgets don't have +are allocated the maximum size space they require. (Widgets don't have to have a maximum size in which case the strech factor is their determining factor.) </ol> @@ -201,7 +201,7 @@ layout, you should reimplement the following <a href="qwidget.html">TQWidget</a> <li> <a href="qwidget.html#sizeHint">TQWidget::sizeHint</a>() returns the preferred size of the widget. <li> <a href="qwidget.html#minimumSizeHint">TQWidget::minimumSizeHint</a>() returns the smallest size the widget can have. <li> <a href="qwidget.html#sizePolicy">TQWidget::sizePolicy</a>() returns a <a href="qsizepolicy.html">TQSizePolicy</a>; a value describing -the space retquirements of the widget. +the space requirements of the widget. </ul> <p> Call <a href="qwidget.html#updateGeometry">TQWidget::updateGeometry</a>() whenever the size hint, minimum size hint or size policy changes. This will cause a layout recalculation. @@ -215,12 +215,12 @@ of the widget, and it is used by <a href="qlayout.html">TQLayout</a> subclasses support heightForWidth() (both <a href="qgridlayout.html">TQGridLayout</a> and <a href="qboxlayout.html">TQBoxLayout</a> support it). <p> For further guidance when implementing these functions, see their implementations in existing TQt classes that have similar layout -retquirements to your new widget. +requirements to your new widget. <p> <h2> Manual Layout </h2> <a name="6"></a><p> If you are making a one-of-a-kind special layout, you can also make a custom widget as described above. Reimplement <a href="qwidget.html#resizeEvent">TQWidget::resizeEvent</a>() -to calculate the retquired distribution of sizes and call <a href="qwidget.html#setGeometry">setGeometry</a>() on each child. +to calculate the required distribution of sizes and call <a href="qwidget.html#setGeometry">setGeometry</a>() on each child. <p> The widget will get an event with <a href="qevent.html#type">type</a> <tt>LayoutHint</tt> when the layout needs to be recalculated. Reimplement <a href="qwidget.html#event">TQWidget::event</a>() to be notified of <tt>LayoutHint</tt> events. |