diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-01 22:09:14 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-07-08 09:01:42 +0900 |
| commit | 81ade129093a279e6537db25710583fd2bba9427 (patch) | |
| tree | a210834cbccc8aee2e9de7a8b7f41e1d31e2ced0 /examples/demo/sql/sqlex.ui.h | |
| parent | 35ced32e331ee29fda1642616c803637952f5b22 (diff) | |
| download | tqt-81ade129.tar.gz tqt-81ade129.zip | |
Replace TRUE/FALSE with boolean values true/false - part 2
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit c03a4800879ab62692e017e01c825ba12a421ad0)
Diffstat (limited to 'examples/demo/sql/sqlex.ui.h')
| -rw-r--r-- | examples/demo/sql/sqlex.ui.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/examples/demo/sql/sqlex.ui.h b/examples/demo/sql/sqlex.ui.h index aa97dfe47..345a2e2dc 100644 --- a/examples/demo/sql/sqlex.ui.h +++ b/examples/demo/sql/sqlex.ui.h @@ -33,8 +33,8 @@ void SqlEx::init() { hsplit->setResizeMode( lv, TQSplitter::KeepSize ); vsplit->setResizeMode( gb, TQSplitter::KeepSize ); - submitBtn->setEnabled( FALSE ); - conDiag = new ConnectDialog( this, "Connection Dialog", TRUE ); + submitBtn->setEnabled( false ); + conDiag = new ConnectDialog( this, "Connection Dialog", true ); } void SqlEx::dbConnect() @@ -84,15 +84,15 @@ void SqlEx::dbConnect() } lv->insertItem( lvi ); } - submitBtn->setEnabled( TRUE ); + submitBtn->setEnabled( true ); } void SqlEx::execQuery() { // use a custom cursor to populate the data table - TQSqlSelectCursor* cursor = new TQSqlSelectCursor( te->text(), TQSqlDatabase::database( "SqlEx", TRUE ) ); + TQSqlSelectCursor* cursor = new TQSqlSelectCursor( te->text(), TQSqlDatabase::database( "SqlEx", true ) ); if ( cursor->isSelect() ) { - dt->setSqlCursor( cursor, TRUE, TRUE ); + dt->setSqlCursor( cursor, true, true ); dt->setSort( TQStringList() ); dt->refresh( TQDataTable::RefreshAll ); TQString txt( "Query OK" ); @@ -118,8 +118,8 @@ void SqlEx::showTable( TQListViewItem * item ) } // populate the data table - TQSqlCursor* cursor = new TQSqlCursor( i->text( 0 ), TRUE, TQSqlDatabase::database( "SqlEx", TRUE ) ); - dt->setSqlCursor( cursor, TRUE, TRUE ); + TQSqlCursor* cursor = new TQSqlCursor( i->text( 0 ), true, TQSqlDatabase::database( "SqlEx", true ) ); + dt->setSqlCursor( cursor, true, true ); dt->setSort( cursor->primaryIndex() ); dt->refresh( TQDataTable::RefreshAll ); lbl->setText( "Displaying table " + i->text( 0 ) ); |
