diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-08-16 19:11:00 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-08-16 19:11:00 +0900 |
| commit | 82ecd83484c9fa1ede059986ab771e74e33e68ef (patch) | |
| tree | d0e76f19632bb02fc55028625bdb903902e1bac1 /doc/man/man3/tqdockwindow.3qt | |
| parent | c55ef27a2c511c29a8a82d00bd2ede1fb02cfa41 (diff) | |
| download | tqt-82ecd834.tar.gz tqt-82ecd834.zip | |
Rename layout nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/man/man3/tqdockwindow.3qt')
| -rw-r--r-- | doc/man/man3/tqdockwindow.3qt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/man/man3/tqdockwindow.3qt b/doc/man/man3/tqdockwindow.3qt index 020a12ac5..5cc94d3f0 100644 --- a/doc/man/man3/tqdockwindow.3qt +++ b/doc/man/man3/tqdockwindow.3qt @@ -114,7 +114,7 @@ Inherited by TQToolBar. .BI "TQt::Orientation \fBorientation\fR () const" .br .ti -1c -.BI "QBoxLayout * \fBboxLayout\fR ()" +.BI "TQBoxLayout * \fBboxLayout\fR ()" .br .ti -1c .BI "virtual void \fBsetOpaqueMoving\fR ( bool b )" @@ -213,7 +213,7 @@ When you construct a dock window you \fImust\fR pass it a QDockArea or a TQMainW .PP In the example above we create a new TQToolBar in the constructor of a TQMainWindow subclass (so that the \fIthis\fR pointer points to the TQMainWindow). By default the toolbar will be added to the Top dock area, but we've moved it to the Left dock area. .PP -A dock window is often used to contain a single widget. In these cases the widget can be set by calling setWidget(). If you're constructing a dock window that contains multiple widgets, e.g. a toolbar, arrange the widgets within a box layout inside the dock window. To do this use the boxLayout() function to get a pointer to the dock window's box layout, then add widgets to the layout using the box layout's QBoxLayout::addWidget() function. The dock window will dynamically set the orientation of the layout to be vertical or horizontal as necessary, although you can control this yourself with setOrientation(). +A dock window is often used to contain a single widget. In these cases the widget can be set by calling setWidget(). If you're constructing a dock window that contains multiple widgets, e.g. a toolbar, arrange the widgets within a box layout inside the dock window. To do this use the boxLayout() function to get a pointer to the dock window's box layout, then add widgets to the layout using the box layout's TQBoxLayout::addWidget() function. The dock window will dynamically set the orientation of the layout to be vertical or horizontal as necessary, although you can control this yourself with setOrientation(). .PP Although a common use of dock windows is for toolbars, they can be used with any widgets. (See the TQt Designer and TQt Linguist applications, for example.) When using larger widgets it may make sense for the dock window to be resizable by calling setResizeEnabled(). Resizable dock windows are given splitter-like handles to allow the user to resize them within their dock area. When resizable dock windows are undocked they become top level windows and can be resized like any other top level windows, e.g. by dragging a corner or edge. .PP @@ -254,8 +254,8 @@ We recommend creating the dock area InDock with a TQMainWindow as parent then ca Constructs a QDockWindow with parent \fIparent\fR, called \fIname\fR and with widget flags \fIf\fR. .SH "QDockArea * QDockWindow::area () const" Returns the dock area in which this dock window is docked, or 0 if the dock window is floating. -.SH "QBoxLayout * QDockWindow::boxLayout ()" -Returns the layout which is used for adding widgets to the dock window. The layout's orientation is set automatically to match the orientation of the dock window. You can add widgets to the layout using the box layout's QBoxLayout::addWidget() function. +.SH "TQBoxLayout * QDockWindow::boxLayout ()" +Returns the layout which is used for adding widgets to the dock window. The layout's orientation is set automatically to match the orientation of the dock window. You can add widgets to the layout using the box layout's TQBoxLayout::addWidget() function. .PP If the dock window only needs to contain a single widget use setWidget() instead. .PP |
