diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-08-12 22:02:11 +0900 | 
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2024-08-12 22:02:11 +0900 | 
| commit | 42957a3f812a1db64a9ae452baa2d3fbc35f2466 (patch) | |
| tree | 0928f4e01a3dcc0698b46c7608d8310e471bdb49 /doc/html/layout-example.html | |
| parent | fef846914f8db6dc117e206ef913d519bf6bb33e (diff) | |
| download | tqt-42957a3f.tar.gz tqt-42957a3f.zip | |
Rename more widget nt* related files to equivalent tq*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'doc/html/layout-example.html')
| -rw-r--r-- | doc/html/layout-example.html | 26 | 
1 files changed, 13 insertions, 13 deletions
| diff --git a/doc/html/layout-example.html b/doc/html/layout-example.html index 6abf2a7ed..b386c2fe3 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="qgridlayout.html">TQGridLayout</a>, <a href="qboxlayout.html">TQBoxLayout</a> etc. +classes, <a href="tqgridlayout.html">TQGridLayout</a>, <a href="qboxlayout.html">TQBoxLayout</a> etc.  <p> <hr>  <p> Implementation:  <p> <pre>/**************************************************************************** @@ -53,7 +53,7 @@ classes, <a href="qgridlayout.html">TQGridLayout</a>, <a href="qboxlayout.html">  #include <<a href="tqpushbutton-h.html">tqpushbutton.h</a>>  #include <<a href="qlayout-h.html">ntqlayout.h</a>>  #include <<a href="tqlineedit-h.html">tqlineedit.h</a>> -#include <<a href="qmultilineedit-h.html">ntqmultilineedit.h</a>> +#include <<a href="tqmultilineedit-h.html">tqmultilineedit.h</a>>  #include <<a href="tqmenubar-h.html">tqmenubar.h</a>>  #include <<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>> @@ -89,7 +89,7 @@ public:          <a href="tqpushbutton.html">TQPushButton</a>* but = new <a href="tqpushbutton.html">TQPushButton</a>( this );          <a href="tqstring.html">TQString</a> s;  <a name="x542"></a>        s.<a href="tqstring.html#sprintf">sprintf</a>( "Button %d", i ); -<a name="x530"></a>        but-><a href="ntqbutton.html#setText">setText</a>( s ); +<a name="x530"></a>        but-><a href="tqbutton.html#setText">setText</a>( s );          // Set horizontal <a href="layout.html#stretch-factor">stretch factor</a> to 10 to let the buttons          // stretch horizontally. The buttons will not stretch @@ -115,9 +115,9 @@ public:  <a name="x528"></a>    buttons2-><a href="qboxlayout.html#addStretch">addStretch</a>( 10 );      // Make  a big widget that will grab all space in the middle. -    <a href="ntqmultilineedit.html">TQMultiLineEdit</a> *bigWidget = new <a href="ntqmultilineedit.html">TQMultiLineEdit</a>( this ); +    <a href="tqmultilineedit.html">TQMultiLineEdit</a> *bigWidget = new <a href="tqmultilineedit.html">TQMultiLineEdit</a>( this );      bigWidget-><a href="tqtextedit.html#setText">setText</a>( "This widget will get all the remaining space" ); -<a name="x531"></a>    bigWidget-><a href="ntqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Panel | TQFrame::Plain ); +<a name="x531"></a>    bigWidget-><a href="tqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Panel | TQFrame::Plain );      // Set vertical stretch factor to 10 to let the bigWidget stretch      // vertically. It will stretch horizontally because there are no @@ -137,38 +137,38 @@ public:      // Let the grid-layout have a spacing of 10 pixels between      // widgets, overriding the default from topLayout. -    <a href="qgridlayout.html">TQGridLayout</a> *grid = new <a href="qgridlayout.html">TQGridLayout</a>( topLayout, 0, 0, 10 ); +    <a href="tqgridlayout.html">TQGridLayout</a> *grid = new <a href="tqgridlayout.html">TQGridLayout</a>( topLayout, 0, 0, 10 );      int row;      for ( row = 0; row < numRows; row++ ) {          <a href="tqlineedit.html">TQLineEdit</a> *ed = new <a href="tqlineedit.html">TQLineEdit</a>( this );          // The line edit goes in the second column -<a name="x533"></a>        grid-><a href="qgridlayout.html#addWidget">addWidget</a>( ed, row, linedCol ); +<a name="x533"></a>        grid-><a href="tqgridlayout.html#addWidget">addWidget</a>( ed, row, linedCol );          // Make a label that is a buddy of the line edit          <a href="tqstring.html">TQString</a> s;          s.<a href="tqstring.html#sprintf">sprintf</a>( "Line &%d", row+1 );          <a href="tqlabel.html">TQLabel</a> *label = new <a href="tqlabel.html">TQLabel</a>( ed, s, this );          // The label goes in the first column. -        grid-><a href="qgridlayout.html#addWidget">addWidget</a>( label, row, labelCol ); +        grid-><a href="tqgridlayout.html#addWidget">addWidget</a>( label, row, labelCol );      }      // The multiline edit will cover the entire vertical range of the      // grid (rows 0 to numRows) and stay in column 2. -    <a href="ntqmultilineedit.html">TQMultiLineEdit</a> *med = new <a href="ntqmultilineedit.html">TQMultiLineEdit</a>( this ); -<a name="x532"></a>    grid-><a href="qgridlayout.html#addMultiCellWidget">addMultiCellWidget</a>( med, 0, -1, multiCol, multiCol ); +    <a href="tqmultilineedit.html">TQMultiLineEdit</a> *med = new <a href="tqmultilineedit.html">TQMultiLineEdit</a>( this ); +<a name="x532"></a>    grid-><a href="tqgridlayout.html#addMultiCellWidget">addMultiCellWidget</a>( med, 0, -1, multiCol, multiCol );      // The labels will take the space they need. Let the remaining      // horizontal space be shared so that the multiline edit gets      // twice as much as the line edit. -<a name="x534"></a>    grid-><a href="qgridlayout.html#setColStretch">setColStretch</a>( linedCol, 10 ); -    grid-><a href="qgridlayout.html#setColStretch">setColStretch</a>( multiCol, 20 ); +<a name="x534"></a>    grid-><a href="tqgridlayout.html#setColStretch">setColStretch</a>( linedCol, 10 ); +    grid-><a href="tqgridlayout.html#setColStretch">setColStretch</a>( multiCol, 20 );      // Add a widget at the bottom.      <a href="tqlabel.html">TQLabel</a>* sb = new <a href="tqlabel.html">TQLabel</a>( this );      sb-><a href="tqlabel.html#setText">setText</a>( "Let's pretend this is a status bar" ); -    sb-><a href="ntqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Panel | TQFrame::Sunken ); +    sb-><a href="tqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Panel | TQFrame::Sunken );      // This widget will use all horizontal space, and have a fixed height.      // we should have made a subclass and implemented sizePolicy there... | 
