diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-26 23:32:43 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-01-26 23:32:43 -0600 |
commit | ea318d1431c89e647598c510c4245c6571aa5f46 (patch) | |
tree | 996d29b80c30d453dda86d1a23162d441628f169 /doc/html/small-table-example-example.html | |
parent | aaf89d4b48f69c9293feb187db26362e550b5561 (diff) | |
download | tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.tar.gz tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.zip |
Update to latest tqt3 automated conversion
Diffstat (limited to 'doc/html/small-table-example-example.html')
-rw-r--r-- | doc/html/small-table-example-example.html | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/doc/html/small-table-example-example.html b/doc/html/small-table-example-example.html index 39cab28ec..e1ac3c4e2 100644 --- a/doc/html/small-table-example-example.html +++ b/doc/html/small-table-example-example.html @@ -33,7 +33,7 @@ body { background: #ffffff; color: black; } <p> -This example displays a <a href="qtable.html">TQTable</a> and some <a href="qtableitem.html">TQTableItem</a>s. +This example displays a <a href="ntqtable.html">TQTable</a> and some <a href="qtableitem.html">TQTableItem</a>s. <p> <hr> <p> Implementation: <p> <pre>/**************************************************************************** @@ -46,11 +46,11 @@ This example displays a <a href="qtable.html">TQTable</a> and some <a href="qtab ** *****************************************************************************/ -#include <<a href="qapplication-h.html">qapplication.h</a>> -#include <<a href="qtable-h.html">qtable.h</a>> -#include <<a href="qimage-h.html">qimage.h</a>> -#include <<a href="qpixmap-h.html">qpixmap.h</a>> -#include <<a href="qstringlist-h.html">qstringlist.h</a>> +#include <<a href="qapplication-h.html">ntqapplication.h</a>> +#include <<a href="qtable-h.html">ntqtable.h</a>> +#include <<a href="qimage-h.html">ntqimage.h</a>> +#include <<a href="qpixmap-h.html">ntqpixmap.h</a>> +#include <<a href="qstringlist-h.html">ntqstringlist.h</a>> // TQt logo: static const char *qtlogo_xpm[] #include "qtlogo.xpm" @@ -64,35 +64,35 @@ const int numCols = 10; int main( int argc, char **argv ) { - <a href="qapplication.html">TQApplication</a> app( argc, argv ); + <a href="ntqapplication.html">TQApplication</a> app( argc, argv ); - <a href="qtable.html">TQTable</a> table( numRows, numCols ); + <a href="ntqtable.html">TQTable</a> table( numRows, numCols ); -<a name="x2800"></a> <a href="qheader.html">TQHeader</a> *header = table.<a href="qtable.html#horizontalHeader">horizontalHeader</a>(); -<a name="x2798"></a> header-><a href="qheader.html#setLabel">setLabel</a>( 0, TQObject::tr( "Tiny" ), 40 ); - header-><a href="qheader.html#setLabel">setLabel</a>( 1, TQObject::tr( "Checkboxes" ) ); - header-><a href="qheader.html#setLabel">setLabel</a>( 5, TQObject::tr( "Combos" ) ); -<a name="x2802"></a> table.<a href="qtable.html#setColumnMovingEnabled">setColumnMovingEnabled</a>(TRUE); +<a name="x2800"></a> <a href="ntqheader.html">TQHeader</a> *header = table.<a href="ntqtable.html#horizontalHeader">horizontalHeader</a>(); +<a name="x2798"></a> header-><a href="ntqheader.html#setLabel">setLabel</a>( 0, TQObject::tr( "Tiny" ), 40 ); + header-><a href="ntqheader.html#setLabel">setLabel</a>( 1, TQObject::tr( "Checkboxes" ) ); + header-><a href="ntqheader.html#setLabel">setLabel</a>( 5, TQObject::tr( "Combos" ) ); +<a name="x2802"></a> table.<a href="ntqtable.html#setColumnMovingEnabled">setColumnMovingEnabled</a>(TRUE); - <a href="qimage.html">TQImage</a> img( qtlogo_xpm ); -<a name="x2801"></a><a name="x2799"></a> <a href="qpixmap.html">TQPixmap</a> pix = img.<a href="qimage.html#scaleHeight">scaleHeight</a>( table.<a href="qtable.html#rowHeight">rowHeight</a>(3) ); -<a name="x2804"></a> table.<a href="qtable.html#setPixmap">setPixmap</a>( 3, 2, pix ); -<a name="x2805"></a> table.<a href="qtable.html#setText">setText</a>( 3, 2, "A Pixmap" ); + <a href="ntqimage.html">TQImage</a> img( qtlogo_xpm ); +<a name="x2801"></a><a name="x2799"></a> <a href="ntqpixmap.html">TQPixmap</a> pix = img.<a href="ntqimage.html#scaleHeight">scaleHeight</a>( table.<a href="ntqtable.html#rowHeight">rowHeight</a>(3) ); +<a name="x2804"></a> table.<a href="ntqtable.html#setPixmap">setPixmap</a>( 3, 2, pix ); +<a name="x2805"></a> table.<a href="ntqtable.html#setText">setText</a>( 3, 2, "A Pixmap" ); - <a href="qstringlist.html">TQStringList</a> comboEntries; + <a href="ntqstringlist.html">TQStringList</a> comboEntries; comboEntries << "one" << "two" << "three" << "four"; for ( int i = 0; i < numRows; ++i ){ <a href="qcombotableitem.html">TQComboTableItem</a> * item = new <a href="qcombotableitem.html">TQComboTableItem</a>( &table, comboEntries, FALSE ); <a name="x2797"></a> item-><a href="qcombotableitem.html#setCurrentItem">setCurrentItem</a>( i % 4 ); -<a name="x2803"></a> table.<a href="qtable.html#setItem">setItem</a>( i, 5, item ); +<a name="x2803"></a> table.<a href="ntqtable.html#setItem">setItem</a>( i, 5, item ); } for ( int j = 0; j < numRows; ++j ) - table.<a href="qtable.html#setItem">setItem</a>( j, 1, new <a href="qchecktableitem.html">TQCheckTableItem</a>( &table, "Check me" ) ); + table.<a href="ntqtable.html#setItem">setItem</a>( j, 1, new <a href="qchecktableitem.html">TQCheckTableItem</a>( &table, "Check me" ) ); - app.<a href="qapplication.html#setMainWidget">setMainWidget</a>( &table ); - table.<a href="qwidget.html#show">show</a>(); - return app.<a href="qapplication.html#exec">exec</a>(); + app.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &table ); + table.<a href="ntqwidget.html#show">show</a>(); + return app.<a href="ntqapplication.html#exec">exec</a>(); } </pre> |