summaryrefslogtreecommitdiffstats
path: root/examples/demo/sql/sqlex.ui.h
diff options
context:
space:
mode:
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 ) );