summaryrefslogtreecommitdiffstats
path: root/src/sql/qsqlmanager_p.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sql/qsqlmanager_p.cpp')
-rw-r--r--src/sql/qsqlmanager_p.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/sql/qsqlmanager_p.cpp b/src/sql/qsqlmanager_p.cpp
index 0d80286..68360dc 100644
--- a/src/sql/qsqlmanager_p.cpp
+++ b/src/sql/qsqlmanager_p.cpp
@@ -307,10 +307,10 @@ static int compare_recs( const QSqlRecord* buf1, const QSqlRecord* buf2,
#ifdef QT_DEBUG_DATAMANAGER
static void debug_datamanager_buffer( const QString& msg, QSqlRecord* cursor )
{
- tqDebug("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
- tqDebug( "%s", msg.latin1() );
+ qDebug("+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++");
+ qDebug( "%s", msg.latin1() );
for ( uint j = 0; j < cursor->count(); ++j ) {
- tqDebug( "%s", (cursor->field(j)->name() + " type:"
+ qDebug( "%s", (cursor->field(j)->name() + " type:"
+ QString(cursor->field(j)->value().typeName())
+ " value:" + cursor->field(j)->value().toString())
.latin1() );
@@ -348,7 +348,7 @@ update. For example:
bool QSqlCursorManager::findBuffer( const QSqlIndex& idx, int atHint )
{
#ifdef QT_DEBUG_DATAMANAGER
- tqDebug("QSqlCursorManager::findBuffer:");
+ qDebug("QSqlCursorManager::findBuffer:");
#endif
QSqlCursor* cur = cursor();
if ( !cur )
@@ -363,7 +363,7 @@ bool QSqlCursorManager::findBuffer( const QSqlIndex& idx, int atHint )
QSqlRecord* buf = cur->editBuffer();
bool indexEquals = FALSE;
#ifdef QT_DEBUG_DATAMANAGER
- tqDebug(" Checking hint...");
+ qDebug(" Checking hint...");
#endif
/* check the hint */
if ( cur->seek( atHint ) )
@@ -371,7 +371,7 @@ bool QSqlCursorManager::findBuffer( const QSqlIndex& idx, int atHint )
if ( !indexEquals ) {
#ifdef QT_DEBUG_DATAMANAGER
- tqDebug(" Checking current page...");
+ qDebug(" Checking current page...");
#endif
/* check current page */
int pageSize = 20;
@@ -389,7 +389,7 @@ bool QSqlCursorManager::findBuffer( const QSqlIndex& idx, int atHint )
if ( !indexEquals && cur->driver()->hasFeature( QSqlDriver::QuerySize )
&& cur->sort().count() ) {
#ifdef QT_DEBUG_DATAMANAGER
- tqDebug(" Using binary search...");
+ qDebug(" Using binary search...");
#endif
// binary search based on record buffer and current sort fields
int lo = 0;
@@ -442,7 +442,7 @@ bool QSqlCursorManager::findBuffer( const QSqlIndex& idx, int atHint )
if ( !indexEquals ) {
#ifdef QT_DEBUG_DATAMANAGER
- tqDebug(" Using brute search...");
+ qDebug(" Using brute search...");
#endif
#ifndef QT_NO_CURSOR
QApplication::setOverrideCursor( Qt::waitCursor );
@@ -465,7 +465,7 @@ bool QSqlCursorManager::findBuffer( const QSqlIndex& idx, int atHint )
#endif
}
#ifdef QT_DEBUG_DATAMANAGER
- tqDebug(" Done, result:" + QString::number( indexEquals ) );
+ qDebug(" Done, result:" + QString::number( indexEquals ) );
#endif
return indexEquals;
}