summaryrefslogtreecommitdiffstats
path: root/examples/sql/overview
diff options
context:
space:
mode:
Diffstat (limited to 'examples/sql/overview')
-rw-r--r--examples/sql/overview/basicbrowsing/main.cpp2
-rw-r--r--examples/sql/overview/basicbrowsing2/main.cpp2
-rw-r--r--examples/sql/overview/basicdatamanip/main.cpp2
-rw-r--r--examples/sql/overview/connect1/main.cpp2
-rw-r--r--examples/sql/overview/connection.cpp6
-rw-r--r--examples/sql/overview/create_connections/main.cpp2
-rw-r--r--examples/sql/overview/custom1/main.cpp4
-rw-r--r--examples/sql/overview/delete/main.cpp2
-rw-r--r--examples/sql/overview/extract/main.cpp2
-rw-r--r--examples/sql/overview/form2/main.cpp4
-rw-r--r--examples/sql/overview/insert/main.cpp2
-rw-r--r--examples/sql/overview/insert2/main.cpp2
-rw-r--r--examples/sql/overview/navigating/main.cpp2
-rw-r--r--examples/sql/overview/order1/main.cpp2
-rw-r--r--examples/sql/overview/order2/main.cpp2
-rw-r--r--examples/sql/overview/retrieve1/main.cpp2
-rw-r--r--examples/sql/overview/subclass3/main.cpp2
-rw-r--r--examples/sql/overview/subclass4/main.cpp6
-rw-r--r--examples/sql/overview/subclass5/main.cpp6
-rw-r--r--examples/sql/overview/table1/main.cpp2
-rw-r--r--examples/sql/overview/table4/main.h2
-rw-r--r--examples/sql/overview/update/main.cpp2
22 files changed, 30 insertions, 30 deletions
diff --git a/examples/sql/overview/basicbrowsing/main.cpp b/examples/sql/overview/basicbrowsing/main.cpp
index d5c25981b..0ae6a8418 100644
--- a/examples/sql/overview/basicbrowsing/main.cpp
+++ b/examples/sql/overview/basicbrowsing/main.cpp
@@ -14,7 +14,7 @@
int main( int argc, char *argv[] )
{
- TQApplication app( argc, argv, FALSE );
+ TQApplication app( argc, argv, false );
if ( createConnections() ) {
TQSqlDatabase *oracledb = TQSqlDatabase::database( "ORACLE" );
diff --git a/examples/sql/overview/basicbrowsing2/main.cpp b/examples/sql/overview/basicbrowsing2/main.cpp
index 2eebd53cf..243b13276 100644
--- a/examples/sql/overview/basicbrowsing2/main.cpp
+++ b/examples/sql/overview/basicbrowsing2/main.cpp
@@ -14,7 +14,7 @@
int main( int argc, char *argv[] )
{
- TQApplication app( argc, argv, FALSE );
+ TQApplication app( argc, argv, false );
if ( createConnections() ) {
TQSqlDatabase *oracledb = TQSqlDatabase::database( "ORACLE" );
diff --git a/examples/sql/overview/basicdatamanip/main.cpp b/examples/sql/overview/basicdatamanip/main.cpp
index b3204abdc..d6dbe22d5 100644
--- a/examples/sql/overview/basicdatamanip/main.cpp
+++ b/examples/sql/overview/basicdatamanip/main.cpp
@@ -17,7 +17,7 @@ bool createConnections();
int main( int argc, char *argv[] )
{
- TQApplication app( argc, argv, FALSE );
+ TQApplication app( argc, argv, false );
int rows = 0;
diff --git a/examples/sql/overview/connect1/main.cpp b/examples/sql/overview/connect1/main.cpp
index cb195aafd..13d997ee6 100644
--- a/examples/sql/overview/connect1/main.cpp
+++ b/examples/sql/overview/connect1/main.cpp
@@ -14,7 +14,7 @@
int main( int argc, char *argv[] )
{
- TQApplication app( argc, argv, FALSE );
+ TQApplication app( argc, argv, false );
TQSqlDatabase *defaultDB = TQSqlDatabase::addDatabase( DB_SALES_DRIVER );
defaultDB->setDatabaseName( DB_SALES_DBNAME );
diff --git a/examples/sql/overview/connection.cpp b/examples/sql/overview/connection.cpp
index 860511211..dfdc55851 100644
--- a/examples/sql/overview/connection.cpp
+++ b/examples/sql/overview/connection.cpp
@@ -19,7 +19,7 @@ bool createConnections()
defaultDB->setHostName( DB_SALES_HOST );
if ( ! defaultDB->open() ) {
tqWarning( "Failed to open sales database: " + defaultDB->lastError().text() );
- return FALSE;
+ return false;
}
TQSqlDatabase *oracle = TQSqlDatabase::addDatabase( DB_ORDERS_DRIVER, "ORACLE" );
@@ -29,7 +29,7 @@ bool createConnections()
oracle->setHostName( DB_ORDERS_HOST );
if ( ! oracle->open() ) {
tqWarning( "Failed to open orders database: " + oracle->lastError().text() );
- return FALSE;
+ return false;
}
TQSqlQuery q(TQString::null, defaultDB);
@@ -46,5 +46,5 @@ bool createConnections()
TQSqlQuery q2(TQString::null, oracle);
q2.exec("create table people (id integer primary key, name char(40))");
- return TRUE;
+ return true;
}
diff --git a/examples/sql/overview/create_connections/main.cpp b/examples/sql/overview/create_connections/main.cpp
index 9cd10689f..23904c894 100644
--- a/examples/sql/overview/create_connections/main.cpp
+++ b/examples/sql/overview/create_connections/main.cpp
@@ -13,7 +13,7 @@
int main( int argc, char *argv[] )
{
- TQApplication app( argc, argv, FALSE );
+ TQApplication app( argc, argv, false );
if ( createConnections() ) {
// Databases successfully opened; get pointers to them:
diff --git a/examples/sql/overview/custom1/main.cpp b/examples/sql/overview/custom1/main.cpp
index adde6e2e3..48c9fcbc0 100644
--- a/examples/sql/overview/custom1/main.cpp
+++ b/examples/sql/overview/custom1/main.cpp
@@ -60,8 +60,8 @@ FormDialog::FormDialog()
grid->activate();
staffCursor = new TQSqlCursor( "staff" );
- staffCursor->setTrimmed( "forename", TRUE );
- staffCursor->setTrimmed( "surname", TRUE );
+ staffCursor->setTrimmed( "forename", true );
+ staffCursor->setTrimmed( "surname", true );
idIndex = staffCursor->index( "id" );
staffCursor->select( idIndex );
staffCursor->first();
diff --git a/examples/sql/overview/delete/main.cpp b/examples/sql/overview/delete/main.cpp
index d0b36db37..d8c4ca3e1 100644
--- a/examples/sql/overview/delete/main.cpp
+++ b/examples/sql/overview/delete/main.cpp
@@ -14,7 +14,7 @@
int main( int argc, char *argv[] )
{
- TQApplication app( argc, argv, FALSE );
+ TQApplication app( argc, argv, false );
if ( createConnections() ) {
TQSqlCursor cur( "prices" );
diff --git a/examples/sql/overview/extract/main.cpp b/examples/sql/overview/extract/main.cpp
index bc20ab6a6..aec32cc99 100644
--- a/examples/sql/overview/extract/main.cpp
+++ b/examples/sql/overview/extract/main.cpp
@@ -14,7 +14,7 @@
int main( int argc, char *argv[] )
{
- TQApplication app( argc, argv, FALSE );
+ TQApplication app( argc, argv, false );
if ( createConnections() ) {
TQSqlCursor cur( "creditors" );
diff --git a/examples/sql/overview/form2/main.cpp b/examples/sql/overview/form2/main.cpp
index 115a27420..151cfbafe 100644
--- a/examples/sql/overview/form2/main.cpp
+++ b/examples/sql/overview/form2/main.cpp
@@ -12,8 +12,8 @@
FormDialog::FormDialog()
: staffCursor( "staff" )
{
- staffCursor.setTrimmed( "forename", TRUE );
- staffCursor.setTrimmed( "surname", TRUE );
+ staffCursor.setTrimmed( "forename", true );
+ staffCursor.setTrimmed( "surname", true );
TQLabel *forenameLabel = new TQLabel( "Forename:", this );
TQLineEdit *forenameEdit = new TQLineEdit( this );
diff --git a/examples/sql/overview/insert/main.cpp b/examples/sql/overview/insert/main.cpp
index a5933a4b7..89c1a6436 100644
--- a/examples/sql/overview/insert/main.cpp
+++ b/examples/sql/overview/insert/main.cpp
@@ -14,7 +14,7 @@
int main( int argc, char *argv[] )
{
- TQApplication app( argc, argv, FALSE );
+ TQApplication app( argc, argv, false );
if ( createConnections() ) {
int count = 0;
diff --git a/examples/sql/overview/insert2/main.cpp b/examples/sql/overview/insert2/main.cpp
index c411d3f55..9712fc99a 100644
--- a/examples/sql/overview/insert2/main.cpp
+++ b/examples/sql/overview/insert2/main.cpp
@@ -14,7 +14,7 @@
int main( int argc, char *argv[] )
{
- TQApplication app( argc, argv, FALSE );
+ TQApplication app( argc, argv, false );
if ( createConnections() ) {
TQSqlCursor cur( "prices" );
diff --git a/examples/sql/overview/navigating/main.cpp b/examples/sql/overview/navigating/main.cpp
index a9cacab3c..d55dbe583 100644
--- a/examples/sql/overview/navigating/main.cpp
+++ b/examples/sql/overview/navigating/main.cpp
@@ -14,7 +14,7 @@
int main( int argc, char *argv[] )
{
- TQApplication app( argc, argv, FALSE );
+ TQApplication app( argc, argv, false );
if ( createConnections() ) {
TQSqlQuery query( "SELECT id, name FROM people ORDER BY name" );
diff --git a/examples/sql/overview/order1/main.cpp b/examples/sql/overview/order1/main.cpp
index 291094e50..d486a4442 100644
--- a/examples/sql/overview/order1/main.cpp
+++ b/examples/sql/overview/order1/main.cpp
@@ -14,7 +14,7 @@
int main( int argc, char *argv[] )
{
- TQApplication app( argc, argv, FALSE );
+ TQApplication app( argc, argv, false );
if ( createConnections() ) {
TQSqlCursor cur( "staff" );
diff --git a/examples/sql/overview/order2/main.cpp b/examples/sql/overview/order2/main.cpp
index e098f47f8..931d07299 100644
--- a/examples/sql/overview/order2/main.cpp
+++ b/examples/sql/overview/order2/main.cpp
@@ -14,7 +14,7 @@
int main( int argc, char *argv[] )
{
- TQApplication app( argc, argv, FALSE );
+ TQApplication app( argc, argv, false );
if ( createConnections() ) {
TQSqlCursor cur( "staff" );
diff --git a/examples/sql/overview/retrieve1/main.cpp b/examples/sql/overview/retrieve1/main.cpp
index d6d4f0db3..f1dc1e4c5 100644
--- a/examples/sql/overview/retrieve1/main.cpp
+++ b/examples/sql/overview/retrieve1/main.cpp
@@ -14,7 +14,7 @@
int main( int argc, char *argv[] )
{
- TQApplication app( argc, argv, FALSE );
+ TQApplication app( argc, argv, false );
if ( createConnections() ) {
TQSqlQuery query( "SELECT id, surname FROM staff" );
diff --git a/examples/sql/overview/subclass3/main.cpp b/examples/sql/overview/subclass3/main.cpp
index 2e515f590..8b8f98a8b 100644
--- a/examples/sql/overview/subclass3/main.cpp
+++ b/examples/sql/overview/subclass3/main.cpp
@@ -15,7 +15,7 @@ InvoiceItemCursor::InvoiceItemCursor() :
{
TQSqlFieldInfo productName( "productname", TQVariant::String );
append( productName );
- setCalculated( productName.name(), TRUE );
+ setCalculated( productName.name(), true );
}
diff --git a/examples/sql/overview/subclass4/main.cpp b/examples/sql/overview/subclass4/main.cpp
index 94dea675c..6091aaeb5 100644
--- a/examples/sql/overview/subclass4/main.cpp
+++ b/examples/sql/overview/subclass4/main.cpp
@@ -15,15 +15,15 @@ InvoiceItemCursor::InvoiceItemCursor() :
{
TQSqlFieldInfo productName( "productname", TQVariant::String );
append( productName );
- setCalculated( productName.name(), TRUE );
+ setCalculated( productName.name(), true );
TQSqlFieldInfo productPrice( "price", TQVariant::Double );
append( productPrice );
- setCalculated( productPrice.name(), TRUE );
+ setCalculated( productPrice.name(), true );
TQSqlFieldInfo productCost( "cost", TQVariant::Double );
append( productCost );
- setCalculated( productCost.name(), TRUE );
+ setCalculated( productCost.name(), true );
}
diff --git a/examples/sql/overview/subclass5/main.cpp b/examples/sql/overview/subclass5/main.cpp
index f5ef905bc..cc4b076af 100644
--- a/examples/sql/overview/subclass5/main.cpp
+++ b/examples/sql/overview/subclass5/main.cpp
@@ -15,15 +15,15 @@ InvoiceItemCursor::InvoiceItemCursor() :
{
TQSqlFieldInfo productName( "productname", TQVariant::String );
append( productName );
- setCalculated( productName.name(), TRUE );
+ setCalculated( productName.name(), true );
TQSqlFieldInfo productPrice( "price", TQVariant::Double );
append( productPrice );
- setCalculated( productPrice.name(), TRUE );
+ setCalculated( productPrice.name(), true );
TQSqlFieldInfo productCost( "cost", TQVariant::Double );
append( productCost );
- setCalculated( productCost.name(), TRUE );
+ setCalculated( productCost.name(), true );
}
diff --git a/examples/sql/overview/table1/main.cpp b/examples/sql/overview/table1/main.cpp
index d7e4eea5a..f9d538a8c 100644
--- a/examples/sql/overview/table1/main.cpp
+++ b/examples/sql/overview/table1/main.cpp
@@ -19,7 +19,7 @@ int main( int argc, char *argv[] )
if ( createConnections() ) {
TQSqlCursor staffCursor( "staff" );
- TQDataTable *staffTable = new TQDataTable( &staffCursor, TRUE );
+ TQDataTable *staffTable = new TQDataTable( &staffCursor, true );
app.setMainWidget( staffTable );
staffTable->refresh();
staffTable->show();
diff --git a/examples/sql/overview/table4/main.h b/examples/sql/overview/table4/main.h
index d1d81894d..28e3ba2c0 100644
--- a/examples/sql/overview/table4/main.h
+++ b/examples/sql/overview/table4/main.h
@@ -36,7 +36,7 @@ class CustomTable : public TQDataTable
TQ_OBJECT
public:
CustomTable(
- TQSqlCursor *cursor, bool autoPopulate = FALSE,
+ TQSqlCursor *cursor, bool autoPopulate = false,
TQWidget * parent = 0, const char * name = 0 ) :
TQDataTable( cursor, autoPopulate, parent, name ) {}
void paintField(
diff --git a/examples/sql/overview/update/main.cpp b/examples/sql/overview/update/main.cpp
index 389721634..648a0be67 100644
--- a/examples/sql/overview/update/main.cpp
+++ b/examples/sql/overview/update/main.cpp
@@ -14,7 +14,7 @@
int main( int argc, char *argv[] )
{
- TQApplication app( argc, argv, FALSE );
+ TQApplication app( argc, argv, false );
if ( createConnections() ) {
TQSqlCursor cur( "prices" );