From 41bb408dde90e755b07cd2ab8a9bdec7548c84b0 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Tue, 28 Feb 2012 22:31:39 -0600 Subject: Automated conversion from qt3 --- src/sql/qsqldatabase.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/sql/qsqldatabase.cpp') diff --git a/src/sql/qsqldatabase.cpp b/src/sql/qsqldatabase.cpp index 582219b49..be51271b3 100644 --- a/src/sql/qsqldatabase.cpp +++ b/src/sql/qsqldatabase.cpp @@ -92,7 +92,7 @@ TQPtrDict *qt_open_extension_dict = 0; static TQSingleCleanupHandler< TQPtrDict > qt_driver_ext_cleanup; static TQSingleCleanupHandler< TQPtrDict > qt_open_ext_cleanup; -Q_EXPORT TQPtrDict *qSqlDriverExtDict() +Q_EXPORT TQPtrDict *tqSqlDriverExtDict() { if ( !qt_driver_extension_dict ) { qt_driver_extension_dict = new TQPtrDict; @@ -101,7 +101,7 @@ Q_EXPORT TQPtrDict *qSqlDriverExtDict() return qt_driver_extension_dict; } -Q_EXPORT TQPtrDict *qSqlOpenExtDict() +Q_EXPORT TQPtrDict *tqSqlOpenExtDict() { if ( !qt_open_extension_dict ) { qt_open_extension_dict = new TQPtrDict; @@ -212,7 +212,7 @@ TQSqlDatabaseManager* TQSqlDatabaseManager::instance() static TQGuardedPtr sqlConnection = 0; if ( !sqlConnection ) { if( tqApp == 0 ){ - qFatal( "TQSqlDatabaseManager: A TQApplication object has to be " + tqFatal( "TQSqlDatabaseManager: A TQApplication object has to be " "instantiated in order to use the SQL module." ); return 0; } @@ -238,7 +238,7 @@ TQSqlDatabase* TQSqlDatabaseManager::database( const TQString& name, bool open ) db->open(); #ifdef QT_CHECK_RANGE if ( !db->isOpen() ) - qWarning("TQSqlDatabaseManager::database: unable to open database: %s: %s", + tqWarning("TQSqlDatabaseManager::database: unable to open database: %s: %s", db->lastError().databaseText().latin1(), db->lastError().driverText().latin1() ); #endif } @@ -690,8 +690,8 @@ void TQSqlDatabase::init( const TQString& type, const TQString& ) if ( !d->driver ) { #ifdef QT_CHECK_RANGE - qWarning( "TQSqlDatabase: %s driver not loaded", type.latin1() ); - qWarning( "TQSqlDatabase: available drivers: %s", drivers().join(" ").latin1() ); + tqWarning( "TQSqlDatabase: %s driver not loaded", type.latin1() ); + tqWarning( "TQSqlDatabase: available drivers: %s", drivers().join(" ").latin1() ); #endif d->driver = new TQNullDriver(); d->driver->setLastError( TQSqlError( "Driver not loaded", "Driver not loaded" ) ); -- cgit v1.2.1