summaryrefslogtreecommitdiffstats
path: root/src/sql/qsqldatabase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sql/qsqldatabase.cpp')
-rw-r--r--src/sql/qsqldatabase.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/sql/qsqldatabase.cpp b/src/sql/qsqldatabase.cpp
index cc38f86fc..0dddb3b17 100644
--- a/src/sql/qsqldatabase.cpp
+++ b/src/sql/qsqldatabase.cpp
@@ -40,7 +40,7 @@
#include "ntqsqldatabase.h"
-#ifndef QT_NO_SQL
+#ifndef TQT_NO_SQL
#ifdef Q_OS_WIN32
// Conflicting declarations of LPCBYTE in sqlfront.h and winscard.h
@@ -345,7 +345,7 @@ class TQSqlDatabasePrivate
public:
TQSqlDatabasePrivate():
driver(0),
-#ifndef QT_NO_COMPONENT
+#ifndef TQT_NO_COMPONENT
plugIns(0),
#endif
port(-1) {}
@@ -353,7 +353,7 @@ public:
{
}
TQSqlDriver* driver;
-#ifndef QT_NO_COMPONENT
+#ifndef TQT_NO_COMPONENT
TQPluginManager<TQSqlDriverFactoryInterface> *plugIns;
#endif
TQString dbname;
@@ -486,7 +486,7 @@ TQStringList TQSqlDatabase::drivers()
{
TQStringList l;
-#ifndef QT_NO_COMPONENT
+#ifndef TQT_NO_COMPONENT
TQPluginManager<TQSqlDriverFactoryInterface> *plugIns;
plugIns = new TQPluginManager<TQSqlDriverFactoryInterface>( IID_QSqlDriverFactory, TQApplication::libraryPaths(), "/sqldrivers" );
@@ -695,7 +695,7 @@ void TQSqlDatabase::init( const TQString& type, const TQString& )
}
}
-#ifndef QT_NO_COMPONENT
+#ifndef TQT_NO_COMPONENT
if ( !d->driver ) {
d->plugIns =
new TQPluginManager<TQSqlDriverFactoryInterface>( IID_QSqlDriverFactory, TQApplication::libraryPaths(), "/sqldrivers" );
@@ -724,7 +724,7 @@ void TQSqlDatabase::init( const TQString& type, const TQString& )
TQSqlDatabase::~TQSqlDatabase()
{
delete d->driver;
-#ifndef QT_NO_COMPONENT
+#ifndef TQT_NO_COMPONENT
delete d->plugIns;
#endif
delete d;
@@ -1357,4 +1357,4 @@ TQSqlDatabase* TQSqlDatabase::addDatabase( TQSqlDriver* driver, const TQString&
{
return TQSqlDatabaseManager::addDatabase( new TQSqlDatabase( driver ), connectionName );
}
-#endif // QT_NO_SQL
+#endif // TQT_NO_SQL