summaryrefslogtreecommitdiffstats
path: root/examples/demo/sql/sqlex.ui.h
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-07-01 22:09:14 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-07-08 09:01:42 +0900
commit81ade129093a279e6537db25710583fd2bba9427 (patch)
treea210834cbccc8aee2e9de7a8b7f41e1d31e2ced0 /examples/demo/sql/sqlex.ui.h
parent35ced32e331ee29fda1642616c803637952f5b22 (diff)
downloadtqt-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.h14
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 ) );