From e02e31c8b9d854cd62cbe9799228f6e08e882773 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Mon, 5 Dec 2011 22:04:08 -0600 Subject: Sync with latest script --- doc/html/layout.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'doc/html/layout.html') diff --git a/doc/html/layout.html b/doc/html/layout.html index 12de2a5cd..749cd3c45 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 Expanding size policy first.
  • 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.)
  • 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.) @@ -201,7 +201,7 @@ layout, you should reimplement the following TQWidget
  • TQWidget::sizeHint() returns the preferred size of the widget.
  • TQWidget::minimumSizeHint() returns the smallest size the widget can have.
  • TQWidget::sizePolicy() returns a TQSizePolicy; a value describing -the space retquirements of the widget. +the space requirements of the widget.

    Call TQWidget::updateGeometry() 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 TQLayout subclasses support heightForWidth() (both TQGridLayout and TQBoxLayout support it).

    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.

    Manual Layout

    If you are making a one-of-a-kind special layout, you can also make a custom widget as described above. Reimplement TQWidget::resizeEvent() -to calculate the retquired distribution of sizes and call setGeometry() on each child. +to calculate the required distribution of sizes and call setGeometry() on each child.

    The widget will get an event with type LayoutHint when the layout needs to be recalculated. Reimplement TQWidget::event() to be notified of LayoutHint events. -- cgit v1.2.1