From 87d29563e3ccdeb7fea0197e262e667ef323ff9c Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 7 Jul 2024 14:56:09 +0900 Subject: Rename utility class nt* related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/bigtable-example.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'doc/html/bigtable-example.html') 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; }

-

This example shows a sparse table implementation using a TQIntDict to +

This example shows a sparse table implementation using a TQIntDict to keep track of the cells that are actually in use.


Implementation: @@ -66,27 +66,27 @@ public: } void resizeData( int ) {} - TQTableItem *item( int r, int c ) const { return items.find( indexOf( r, c ) ); } - void setItem( int r, int c, TQTableItem *i ) { items.replace( indexOf( r, c ), i ); } - void clearCell( int r, int c ) { items.remove( indexOf( r, c ) ); } + TQTableItem *item( int r, int c ) const { return items.find( indexOf( r, c ) ); } + void setItem( int r, int c, TQTableItem *i ) { items.replace( indexOf( r, c ), i ); } + void clearCell( int r, int c ) { items.remove( indexOf( r, c ) ); } void takeItem( TQTableItem *item ) { items.setAutoDelete( FALSE ); - items.remove( indexOf( item->row(), item->col() ) ); + items.remove( indexOf( item->row(), item->col() ) ); items.setAutoDelete( TRUE ); } - void insertWidget( int r, int c, TQWidget *w ) { widgets.replace( indexOf( r, c ), w ); } - TQWidget *cellWidget( int r, int c ) const { return widgets.find( indexOf( r, c ) ); } + void insertWidget( int r, int c, TQWidget *w ) { widgets.replace( indexOf( r, c ), w ); } + TQWidget *cellWidget( int r, int c ) const { return widgets.find( indexOf( r, c ) ); } void clearCellWidget( int r, int c ) { - TQWidget *w = widgets.take( indexOf( r, c ) ); + TQWidget *w = widgets.take( indexOf( r, c ) ); if ( w ) w->deleteLater(); } private: - TQIntDict<TQTableItem> items; - TQIntDict<TQWidget> widgets; + TQIntDict<TQTableItem> items; + TQIntDict<TQWidget> widgets; }; -- cgit v1.2.3