From a830bf10b7d4ed2c83ffe68c0b22d7c4ba9860b0 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 1 Mar 2012 13:24:30 -0600 Subject: Rename additional global TQt functions --- src/sql/qsqlquery.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/sql/qsqlquery.cpp') diff --git a/src/sql/qsqlquery.cpp b/src/sql/qsqlquery.cpp index fec2343..44e3b67 100644 --- a/src/sql/qsqlquery.cpp +++ b/src/sql/qsqlquery.cpp @@ -353,7 +353,7 @@ bool QSqlQuery::exec ( const QString& query ) d->sqlResult->setAt( QSql::BeforeFirst ); if ( !driver() ) { #ifdef QT_CHECK_RANGE - qWarning("QSqlQuery::exec: no driver" ); + tqWarning("QSqlQuery::exec: no driver" ); #endif return FALSE; } @@ -363,18 +363,18 @@ bool QSqlQuery::exec ( const QString& query ) d->executedQuery = d->sqlResult->lastQuery(); if ( !driver()->isOpen() || driver()->isOpenError() ) { #ifdef QT_CHECK_RANGE - qWarning("QSqlQuery::exec: database not open" ); + tqWarning("QSqlQuery::exec: database not open" ); #endif return FALSE; } if ( query.isNull() || query.length() == 0 ) { #ifdef QT_CHECK_RANGE - qWarning("QSqlQuery::exec: empty query" ); + tqWarning("QSqlQuery::exec: empty query" ); #endif return FALSE; } #ifdef QT_DEBUG_SQL - qDebug( "\n QSqlQuery: " + query ); + tqDebug( "\n QSqlQuery: " + query ); #endif return d->sqlResult->reset( query ); } @@ -403,7 +403,7 @@ QVariant QSqlQuery::value( int i ) const return d->sqlResult->data( i ); } else { #ifdef QT_CHECK_RANGE - qWarning( "QSqlQuery::value: not positioned on a valid record" ); + tqWarning( "QSqlQuery::value: not positioned on a valid record" ); #endif } return QVariant(); @@ -544,7 +544,7 @@ bool QSqlQuery::seek( int i, bool relative ) // let drivers optimize if ( isForwardOnly() && actualIdx < at() ) { #ifdef QT_CHECK_RANGE - qWarning("QSqlQuery::seek: cannot seek backwards in a forward only query" ); + tqWarning("QSqlQuery::seek: cannot seek backwards in a forward only query" ); #endif afterSeek(); return FALSE; @@ -661,7 +661,7 @@ bool QSqlQuery::prev() return FALSE; if ( isForwardOnly() ) { #ifdef QT_CHECK_RANGE - qWarning("QSqlQuery::seek: cannot seek backwards in a forward only query" ); + tqWarning("QSqlQuery::seek: cannot seek backwards in a forward only query" ); #endif return FALSE; } @@ -705,7 +705,7 @@ bool QSqlQuery::first() return FALSE; if ( isForwardOnly() && at() > QSql::BeforeFirst ) { #ifdef QT_CHECK_RANGE - qWarning("QSqlQuery::seek: cannot seek backwards in a forward only query" ); + tqWarning("QSqlQuery::seek: cannot seek backwards in a forward only query" ); #endif return FALSE; } @@ -937,7 +937,7 @@ bool QSqlQuery::prepare( const QString& query ) d->sqlResult->extension()->clear(); if ( !driver() ) { #ifdef QT_CHECK_RANGE - qWarning("QSqlQuery::prepare: no driver" ); + tqWarning("QSqlQuery::prepare: no driver" ); #endif return FALSE; } @@ -946,18 +946,18 @@ bool QSqlQuery::prepare( const QString& query ) d->sqlResult->setQuery( query.stripWhiteSpace() ); if ( !driver()->isOpen() || driver()->isOpenError() ) { #ifdef QT_CHECK_RANGE - qWarning("QSqlQuery::prepare: database not open" ); + tqWarning("QSqlQuery::prepare: database not open" ); #endif return FALSE; } if ( query.isNull() || query.length() == 0 ) { #ifdef QT_CHECK_RANGE - qWarning("QSqlQuery::prepare: empty query" ); + tqWarning("QSqlQuery::prepare: empty query" ); #endif return FALSE; } #ifdef QT_DEBUG_SQL - qDebug( "\n QSqlQuery: " + query ); + tqDebug( "\n QSqlQuery: " + query ); #endif QString q = query; QRegExp rx(QString::fromLatin1("'[^']*'|:([a-zA-Z0-9_]+)")); @@ -1176,7 +1176,7 @@ QVariant QSqlQuery::boundValue( int pos ) const QMap::ConstIterator it; QMap vals = query.boundValues(); for ( it = vals.begin(); it != vals.end(); ++it ) - qWarning( "Placeholder: " + it.key() + ", Value: " + (*it).toString() ); + tqWarning( "Placeholder: " + it.key() + ", Value: " + (*it).toString() ); ... // Examine the bound values - bound using positional binding @@ -1184,7 +1184,7 @@ QVariant QSqlQuery::boundValue( int pos ) const QValueList list = query.boundValues().values(); int i = 0; for ( it = list.begin(); it != list.end(); ++it ) - qWarning( "Placeholder pos: %d, Value: " + (*it).toString(), i++ ); + tqWarning( "Placeholder pos: %d, Value: " + (*it).toString(), i++ ); ... \endcode -- cgit v1.2.3