diff options
Diffstat (limited to 'doc/html/bigtable-example.html')
-rw-r--r-- | doc/html/bigtable-example.html | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/doc/html/bigtable-example.html b/doc/html/bigtable-example.html index 2ac840b6f..45428479e 100644 --- a/doc/html/bigtable-example.html +++ b/doc/html/bigtable-example.html @@ -33,7 +33,7 @@ body { background: #ffffff; color: black; } <p> -<p> This example shows a sparse table implementation using a <a href="ntqintdict.html">TQIntDict</a> to +<p> This example shows a sparse table implementation using a <a href="tqintdict.html">TQIntDict</a> to keep track of the cells that are actually in use. <p> <hr> <p> Implementation: @@ -66,27 +66,27 @@ public: } void resizeData( int ) {} -<a name="x1286"></a> <a href="qtableitem.html">TQTableItem</a> *item( int r, int c ) const { return items.<a href="ntqintdict.html#find">find</a>( indexOf( r, c ) ); } -<a name="x1288"></a> void setItem( int r, int c, TQTableItem *i ) { items.<a href="ntqintdict.html#replace">replace</a>( indexOf( r, c ), i ); } -<a name="x1287"></a> void clearCell( int r, int c ) { items.<a href="ntqintdict.html#remove">remove</a>( indexOf( r, c ) ); } +<a name="x1286"></a> <a href="qtableitem.html">TQTableItem</a> *item( int r, int c ) const { return items.<a href="tqintdict.html#find">find</a>( indexOf( r, c ) ); } +<a name="x1288"></a> void setItem( int r, int c, TQTableItem *i ) { items.<a href="tqintdict.html#replace">replace</a>( indexOf( r, c ), i ); } +<a name="x1287"></a> void clearCell( int r, int c ) { items.<a href="tqintdict.html#remove">remove</a>( indexOf( r, c ) ); } void takeItem( <a href="qtableitem.html">TQTableItem</a> *item ) { items.<a href="tqptrcollection.html#setAutoDelete">setAutoDelete</a>( FALSE ); -<a name="x1294"></a><a name="x1293"></a> items.<a href="ntqintdict.html#remove">remove</a>( indexOf( item-><a href="qtableitem.html#row">row</a>(), item-><a href="qtableitem.html#col">col</a>() ) ); +<a name="x1294"></a><a name="x1293"></a> items.<a href="tqintdict.html#remove">remove</a>( indexOf( item-><a href="qtableitem.html#row">row</a>(), item-><a href="qtableitem.html#col">col</a>() ) ); items.<a href="tqptrcollection.html#setAutoDelete">setAutoDelete</a>( TRUE ); } - void insertWidget( int r, int c, TQWidget *w ) { widgets.<a href="ntqintdict.html#replace">replace</a>( indexOf( r, c ), w ); } - <a href="tqwidget.html">TQWidget</a> *cellWidget( int r, int c ) const { return widgets.<a href="ntqintdict.html#find">find</a>( indexOf( r, c ) ); } + void insertWidget( int r, int c, TQWidget *w ) { widgets.<a href="tqintdict.html#replace">replace</a>( indexOf( r, c ), w ); } + <a href="tqwidget.html">TQWidget</a> *cellWidget( int r, int c ) const { return widgets.<a href="tqintdict.html#find">find</a>( indexOf( r, c ) ); } void clearCellWidget( int r, int c ) { -<a name="x1289"></a> <a href="tqwidget.html">TQWidget</a> *w = widgets.<a href="ntqintdict.html#take">take</a>( indexOf( r, c ) ); +<a name="x1289"></a> <a href="tqwidget.html">TQWidget</a> *w = widgets.<a href="tqintdict.html#take">take</a>( indexOf( r, c ) ); if ( w ) <a name="x1290"></a> w-><a href="tqobject.html#deleteLater">deleteLater</a>(); } private: - <a href="ntqintdict.html">TQIntDict</a><TQTableItem> items; - <a href="ntqintdict.html">TQIntDict</a><TQWidget> widgets; + <a href="tqintdict.html">TQIntDict</a><TQTableItem> items; + <a href="tqintdict.html">TQIntDict</a><TQWidget> widgets; }; |