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 08:53:47 +0900
commitc03a4800879ab62692e017e01c825ba12a421ad0 (patch)
tree57aeff4300eb9fa64d193569f56b2d98305b49a2 /examples/demo/sql/sqlex.ui.h
parent030b165ac197ce4c2eb62c7700dc4c10604637aa (diff)
downloadtqt-c03a4800879ab62692e017e01c825ba12a421ad0.tar.gz
tqt-c03a4800879ab62692e017e01c825ba12a421ad0.zip
Replace TRUE/FALSE with boolean values true/false - part 2
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
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 e14559c98..c59f6886b 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 ) );