From 4d495175043c399fdca6e1bb4c74ef176fc76fb4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Wed, 6 Aug 2025 11:29:57 +0900 Subject: Replace TRUE/FALSE with boolean values true/false - part 4 Signed-off-by: Michele Calgaro --- doc/html/simple_dd-example.html | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'doc/html/simple_dd-example.html') diff --git a/doc/html/simple_dd-example.html b/doc/html/simple_dd-example.html index 5234a03fa..fb831b198 100644 --- a/doc/html/simple_dd-example.html +++ b/doc/html/simple_dd-example.html @@ -183,8 +183,8 @@ const char* green_icon[]={ DDListBox::DDListBox( TQWidget * parent, const char * name, WFlags f ) : TQListBox( parent, name, f ) { - setAcceptDrops( TRUE ); - dragging = FALSE; + setAcceptDrops( true ); + dragging = false; } @@ -207,7 +207,7 @@ const char* green_icon[]={ void DDListBox::mousePressEvent( TQMouseEvent *evt ) { TQListBox::mousePressEvent( evt ); - dragging = TRUE; + dragging = true; } @@ -216,7 +216,7 @@ const char* green_icon[]={ if ( dragging ) { TQDragObject *d = new TQTextDrag( currentText(), this ); d->dragCopy(); // do NOT delete d. - dragging = FALSE; + dragging = false; } } @@ -227,8 +227,8 @@ const char* green_icon[]={ bool DDIconViewItem::acceptDrop( const TQMimeSource *mime ) const { if ( mime->provides( "text/plain" ) ) - return TRUE; - return FALSE; + return true; + return false; } @@ -254,7 +254,7 @@ void DDIconView::slotNewItem( TQDr if ( TQTextDrag::decode( evt, label ) ) { DDIconViewItem *item = new DDIconViewItem( this, label ); - item->setRenameEnabled( TRUE ); + item->setRenameEnabled( true ); } } @@ -280,11 +280,11 @@ int main( int argc, char *argv[] ) // Populate the TQIconView with icons DDIconViewItem *item; item = new DDIconViewItem( iv, "Red", TQPixmap( red_icon ) ); - item->setRenameEnabled( TRUE ); + item->setRenameEnabled( true ); item = new DDIconViewItem( iv, "Green", TQPixmap( green_icon ) ); - item->setRenameEnabled( TRUE ); + item->setRenameEnabled( true ); item = new DDIconViewItem( iv, "Blue", TQPixmap( blue_icon ) ); - item->setRenameEnabled( TRUE ); + item->setRenameEnabled( true ); return app.exec(); } -- cgit v1.2.3