diff options
Diffstat (limited to 'doc/html/layout-example.html')
-rw-r--r-- | doc/html/layout-example.html | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/doc/html/layout-example.html b/doc/html/layout-example.html index b386c2fe3..2bdfade02 100644 --- a/doc/html/layout-example.html +++ b/doc/html/layout-example.html @@ -34,7 +34,7 @@ body { background: #ffffff; color: black; } <p> This example shows simple and intermediate use of TQt's layout -classes, <a href="tqgridlayout.html">TQGridLayout</a>, <a href="qboxlayout.html">TQBoxLayout</a> etc. +classes, <a href="tqgridlayout.html">TQGridLayout</a>, <a href="tqboxlayout.html">TQBoxLayout</a> etc. <p> <hr> <p> Implementation: <p> <pre>/**************************************************************************** @@ -51,7 +51,7 @@ classes, <a href="tqgridlayout.html">TQGridLayout</a>, <a href="qboxlayout.html" #include <<a href="tqlabel-h.html">tqlabel.h</a>> #include <<a href="tqcolor-h.html">tqcolor.h</a>> #include <<a href="tqpushbutton-h.html">tqpushbutton.h</a>> -#include <<a href="qlayout-h.html">ntqlayout.h</a>> +#include <<a href="tqlayout-h.html">tqlayout.h</a>> #include <<a href="tqlineedit-h.html">tqlineedit.h</a>> #include <<a href="tqmultilineedit-h.html">tqmultilineedit.h</a>> #include <<a href="tqmenubar-h.html">tqmenubar.h</a>> @@ -69,7 +69,7 @@ public: { // Make the top-level layout; a vertical box to contain all widgets // and sub-layouts. - <a href="qboxlayout.html">TQBoxLayout</a> *topLayout = new <a href="qvboxlayout.html">TQVBoxLayout</a>( this, 5 ); + <a href="tqboxlayout.html">TQBoxLayout</a> *topLayout = new <a href="tqvboxlayout.html">TQVBoxLayout</a>( this, 5 ); // Create a menubar... <a href="tqmenubar.html">TQMenuBar</a> *menubar = new <a href="tqmenubar.html">TQMenuBar</a>( this ); @@ -80,10 +80,10 @@ public: menubar-><a href="tqmenudata.html#insertItem">insertItem</a>( "&File", popup ); // ...and tell the layout about it. -<a name="x539"></a> topLayout-><a href="ntqlayout.html#setMenuBar">setMenuBar</a>( menubar ); +<a name="x539"></a> topLayout-><a href="tqlayout.html#setMenuBar">setMenuBar</a>( menubar ); // Make an hbox that will hold a row of buttons. - <a href="qboxlayout.html">TQBoxLayout</a> *buttons = new <a href="qhboxlayout.html">TQHBoxLayout</a>( topLayout ); + <a href="tqboxlayout.html">TQBoxLayout</a> *buttons = new <a href="tqhboxlayout.html">TQHBoxLayout</a>( topLayout ); int i; for ( i = 1; i <= 4; i++ ) { <a href="tqpushbutton.html">TQPushButton</a>* but = new <a href="tqpushbutton.html">TQPushButton</a>( this ); @@ -95,24 +95,24 @@ public: // stretch horizontally. The buttons will not stretch // vertically, since bigWidget below will take up vertical // stretch. -<a name="x529"></a> buttons-><a href="qboxlayout.html#addWidget">addWidget</a>( but, 10 ); +<a name="x529"></a> buttons-><a href="tqboxlayout.html#addWidget">addWidget</a>( but, 10 ); // (Actually, the result would have been the same with a // stretch factor of 0; if no items in a layout have non-zero // stretch, the space is divided equally between members.) } // Make another hbox that will hold a left-justified row of buttons. - <a href="qboxlayout.html">TQBoxLayout</a> *buttons2 = new <a href="qhboxlayout.html">TQHBoxLayout</a>( topLayout ); + <a href="tqboxlayout.html">TQBoxLayout</a> *buttons2 = new <a href="tqhboxlayout.html">TQHBoxLayout</a>( topLayout ); <a href="tqpushbutton.html">TQPushButton</a>* but = new <a href="tqpushbutton.html">TQPushButton</a>( "Button five", this ); - buttons2-><a href="qboxlayout.html#addWidget">addWidget</a>( but ); + buttons2-><a href="tqboxlayout.html#addWidget">addWidget</a>( but ); but = new <a href="tqpushbutton.html">TQPushButton</a>( "Button 6", this ); - buttons2-><a href="qboxlayout.html#addWidget">addWidget</a>( but ); + buttons2-><a href="tqboxlayout.html#addWidget">addWidget</a>( but ); // Fill up the rest of the hbox with stretchable space, so that // the buttons get their minimum width and are pushed to the left. -<a name="x528"></a> buttons2-><a href="qboxlayout.html#addStretch">addStretch</a>( 10 ); +<a name="x528"></a> buttons2-><a href="tqboxlayout.html#addStretch">addStretch</a>( 10 ); // Make a big widget that will grab all space in the middle. <a href="tqmultilineedit.html">TQMultiLineEdit</a> *bigWidget = new <a href="tqmultilineedit.html">TQMultiLineEdit</a>( this ); @@ -122,8 +122,8 @@ public: // Set vertical stretch factor to 10 to let the bigWidget stretch // vertically. It will stretch horizontally because there are no // widgets beside it to take up horizontal stretch. - // topLayout-><a href="qboxlayout.html#addWidget">addWidget</a>( bigWidget, 10 ); - topLayout-><a href="qboxlayout.html#addWidget">addWidget</a>( bigWidget ); + // topLayout-><a href="tqboxlayout.html#addWidget">addWidget</a>( bigWidget, 10 ); + topLayout-><a href="tqboxlayout.html#addWidget">addWidget</a>( bigWidget ); // Make a grid that will hold a vertical table of TQLabel/TQLineEdit // pairs next to a large TQMultiLineEdit. @@ -175,9 +175,9 @@ public: <a name="x545"></a><a name="x537"></a> sb-><a href="tqwidget.html#setFixedHeight">setFixedHeight</a>( sb-><a href="tqwidget.html#sizeHint">sizeHint</a>().height() ); <a name="x535"></a> sb-><a href="tqlabel.html#setAlignment">setAlignment</a>( AlignVCenter | AlignLeft ); - topLayout-><a href="qboxlayout.html#addWidget">addWidget</a>( sb ); + topLayout-><a href="tqboxlayout.html#addWidget">addWidget</a>( sb ); -<a name="x538"></a> topLayout-><a href="ntqlayout.html#activate">activate</a>(); +<a name="x538"></a> topLayout-><a href="tqlayout.html#activate">activate</a>(); } ExampleWidget::~ExampleWidget() |