summaryrefslogtreecommitdiffstats
path: root/tools/designer/designer/project.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2018-10-17 19:46:30 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-10-17 19:46:30 +0900
commit69d87202cb139ffe9e4b3ce92e434523b7b09b64 (patch)
tree7b133311a4d5e5394f2612dced305f815c04847b /tools/designer/designer/project.cpp
parente07baa10b7b8e7105e02a621efadac67216c61ed (diff)
downloadtqt-69d87202.tar.gz
tqt-69d87202.zip
QT_NO_* -> TQT_NO_* renaming.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tools/designer/designer/project.cpp')
-rw-r--r--tools/designer/designer/project.cpp44
1 files changed, 22 insertions, 22 deletions
diff --git a/tools/designer/designer/project.cpp b/tools/designer/designer/project.cpp
index ec322f13e..aadadc82f 100644
--- a/tools/designer/designer/project.cpp
+++ b/tools/designer/designer/project.cpp
@@ -36,7 +36,7 @@
#include "designerappiface.h"
#include "../interfaces/languageinterface.h"
#include "pixmapcollection.h"
-#ifndef QT_NO_SQL
+#ifndef TQT_NO_SQL
#include "dbconnectionimpl.h"
#endif
#include "resource.h"
@@ -55,7 +55,7 @@
#include "mainwindow.h"
#include <ntqworkspace.h>
-#ifndef QT_NO_SQL
+#ifndef TQT_NO_SQL
#include <ntqsqldatabase.h>
#include <ntqsqlrecord.h>
#include <ntqdatatable.h>
@@ -66,7 +66,7 @@
# include <unistd.h>
#endif
-#ifndef QT_NO_SQL
+#ifndef TQT_NO_SQL
DatabaseConnection::~DatabaseConnection()
{
delete iface;
@@ -74,7 +74,7 @@ DatabaseConnection::~DatabaseConnection()
bool DatabaseConnection::refreshCatalog()
{
-#ifndef QT_NO_SQL
+#ifndef TQT_NO_SQL
if ( loaded )
return TRUE;
if ( !open() )
@@ -96,7 +96,7 @@ bool DatabaseConnection::refreshCatalog()
#endif
}
-#ifndef QT_NO_SQL
+#ifndef TQT_NO_SQL
void DatabaseConnection::remove()
{
if ( nm == "(default)" )
@@ -110,7 +110,7 @@ void DatabaseConnection::remove()
bool DatabaseConnection::open( bool suppressDialog )
{
-#ifndef QT_NO_SQL
+#ifndef TQT_NO_SQL
// register our name, if nec
if ( nm == "(default)" ) {
if ( !TQSqlDatabase::contains() ) // default doesn't exists?
@@ -183,7 +183,7 @@ void DatabaseConnection::close()
{
if ( !loaded )
return;
-#ifndef QT_NO_SQL
+#ifndef TQT_NO_SQL
if ( conn ) {
conn->close();
}
@@ -241,7 +241,7 @@ void Project::setModified( bool b )
emit projectModified();
}
-#ifndef QT_NO_SQL
+#ifndef TQT_NO_SQL
DatabaseConnection *Project::databaseConnection( const TQString &name )
{
for ( DatabaseConnection *conn = dbConnections.first();
@@ -818,21 +818,21 @@ void Project::save( bool onlyProjectFile )
}
}
-#ifndef QT_NO_SQL
+#ifndef TQT_NO_SQL
TQPtrList<DatabaseConnection> Project::databaseConnections() const
{
return dbConnections;
}
#endif
-#ifndef QT_NO_SQL
+#ifndef TQT_NO_SQL
void Project::setDatabaseConnections( const TQPtrList<DatabaseConnection> &lst )
{
dbConnections = lst;
}
#endif
-#ifndef QT_NO_SQL
+#ifndef TQT_NO_SQL
void Project::addDatabaseConnection( DatabaseConnection *conn )
{
dbConnections.append( conn );
@@ -840,7 +840,7 @@ void Project::addDatabaseConnection( DatabaseConnection *conn )
}
#endif
-#ifndef QT_NO_SQL
+#ifndef TQT_NO_SQL
void Project::removeDatabaseConnection( const TQString &c )
{
for ( DatabaseConnection *conn = dbConnections.first(); conn; conn = dbConnections.next() ) {
@@ -854,7 +854,7 @@ void Project::removeDatabaseConnection( const TQString &c )
}
#endif
-#ifndef QT_NO_SQL
+#ifndef TQT_NO_SQL
TQStringList Project::databaseConnectionList()
{
TQStringList lst;
@@ -864,7 +864,7 @@ TQStringList Project::databaseConnectionList()
}
#endif
-#ifndef QT_NO_SQL
+#ifndef TQT_NO_SQL
TQStringList Project::databaseTableList( const TQString &connection )
{
DatabaseConnection *conn = databaseConnection( connection );
@@ -875,7 +875,7 @@ TQStringList Project::databaseTableList( const TQString &connection )
}
#endif
-#ifndef QT_NO_SQL
+#ifndef TQT_NO_SQL
TQStringList Project::databaseFieldList( const TQString &connection, const TQString &table )
{
DatabaseConnection *conn = databaseConnection( connection );
@@ -885,7 +885,7 @@ TQStringList Project::databaseFieldList( const TQString &connection, const TQStr
}
#endif
-#ifndef QT_NO_SQL
+#ifndef TQT_NO_SQL
static TQString makeIndent( int indent )
{
TQString s;
@@ -894,7 +894,7 @@ static TQString makeIndent( int indent )
}
#endif
-#ifndef QT_NO_SQL
+#ifndef TQT_NO_SQL
static void saveSingleProperty( TQTextStream &ts, const TQString& name, const TQString& value, int indent )
{
ts << makeIndent( indent ) << "<property name=\"" << name << "\">" << endl;
@@ -907,7 +907,7 @@ static void saveSingleProperty( TQTextStream &ts, const TQString& name, const TQ
void Project::saveConnections()
{
-#ifndef QT_NO_SQL
+#ifndef TQT_NO_SQL
if ( dbFile.isEmpty() ) {
TQFileInfo fi( fileName() );
setDatabaseDescription( fi.baseName() + ".db" );
@@ -974,7 +974,7 @@ void Project::saveConnections()
#endif
}
-#ifndef QT_NO_SQL
+#ifndef TQT_NO_SQL
static TQDomElement loadSingleProperty( TQDomElement e, const TQString& name )
{
TQDomElement n;
@@ -990,7 +990,7 @@ static TQDomElement loadSingleProperty( TQDomElement e, const TQString& name )
void Project::loadConnections()
{
-#ifndef QT_NO_SQL
+#ifndef TQT_NO_SQL
if ( dbFile.isEmpty() || !TQFile::exists( makeAbsolute( dbFile ) ) )
return;
@@ -1061,7 +1061,7 @@ can be closed again with closeDatabase().
bool Project::openDatabase( const TQString &connection, bool suppressDialog )
{
-#ifndef QT_NO_SQL
+#ifndef TQT_NO_SQL
DatabaseConnection *conn = databaseConnection( connection );
if ( connection.isEmpty() && !conn )
conn = databaseConnection( "(default)" );
@@ -1080,7 +1080,7 @@ bool Project::openDatabase( const TQString &connection, bool suppressDialog )
*/
void Project::closeDatabase( const TQString &connection )
{
-#ifndef QT_NO_SQL
+#ifndef TQT_NO_SQL
DatabaseConnection *conn = databaseConnection( connection );
if ( connection.isEmpty() && !conn )
conn = databaseConnection( "(default)" );