diff options
Diffstat (limited to 'kexi/kexidb/queryschemaparameter.cpp')
-rw-r--r-- | kexi/kexidb/queryschemaparameter.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kexi/kexidb/queryschemaparameter.cpp b/kexi/kexidb/queryschemaparameter.cpp index 3703de24..4cead962 100644 --- a/kexi/kexidb/queryschemaparameter.cpp +++ b/kexi/kexidb/queryschemaparameter.cpp @@ -21,7 +21,7 @@ #include "driver.h" #include <kdebug.h> -#include <qguardedptr.h> +#include <tqguardedptr.h> using namespace KexiDB; @@ -34,14 +34,14 @@ QuerySchemaParameter::~QuerySchemaParameter() { } -QString QuerySchemaParameter::debugString() const +TQString QuerySchemaParameter::debugString() const { - return QString("msg=\"%1\" type=\"%2\"").arg(Field::typeName(type)).arg(message); + return TQString("msg=\"%1\" type=\"%2\"").tqarg(Field::typeName(type)).tqarg(message); } void KexiDB::debug(const QuerySchemaParameterList& list) { - KexiDBDbg << QString("Query parameters (%1):").arg(list.count()) << endl; + KexiDBDbg << TQString("Query parameters (%1):").tqarg(list.count()) << endl; foreach(QuerySchemaParameterListConstIterator, it, list) KexiDBDbg << " - " << (*it).debugString() << endl; } @@ -51,7 +51,7 @@ void KexiDB::debug(const QuerySchemaParameterList& list) class QuerySchemaParameterValueListIterator::Private { public: - Private(const Driver& aDriver, const QValueList<QVariant>& aParams) + Private(const Driver& aDriver, const TQValueList<TQVariant>& aParams) : driver(&aDriver) , params(aParams) { @@ -59,14 +59,14 @@ class QuerySchemaParameterValueListIterator::Private paramsIt = params.fromLast(); //constBegin(); paramsItPosition = params.count(); } - QGuardedPtr<const Driver> driver; - const QValueList<QVariant> params; - QValueList<QVariant>::ConstIterator paramsIt; + TQGuardedPtr<const Driver> driver; + const TQValueList<TQVariant> params; + TQValueList<TQVariant>::ConstIterator paramsIt; uint paramsItPosition; }; QuerySchemaParameterValueListIterator::QuerySchemaParameterValueListIterator( - const Driver& driver, const QValueList<QVariant>& params) + const Driver& driver, const TQValueList<TQVariant>& params) : d( new Private(driver, params) ) { } @@ -76,26 +76,26 @@ QuerySchemaParameterValueListIterator::~QuerySchemaParameterValueListIterator() delete d; } -QVariant QuerySchemaParameterValueListIterator::getPreviousValue() +TQVariant QuerySchemaParameterValueListIterator::getPreviousValue() { if (d->paramsItPosition == 0) { //d->params.constEnd()) { KexiDBWarn << "QuerySchemaParameterValues::getPreviousValue() no prev value" << endl; - return QVariant(); + return TQVariant(); } - QVariant res( *d->paramsIt ); + TQVariant res( *d->paramsIt ); --d->paramsItPosition; --d->paramsIt; // ++d->paramsIt; return res; } -QString QuerySchemaParameterValueListIterator::getPreviousValueAsString(Field::Type type) +TQString QuerySchemaParameterValueListIterator::getPreviousValueAsString(Field::Type type) { if (d->paramsItPosition == 0) { //d->params.constEnd()) { KexiDBWarn << "QuerySchemaParameterValues::getPreviousValueAsString() no prev value" << endl; - return d->driver->valueToSQL(type, QVariant()); //"NULL" + return d->driver->valueToSQL(type, TQVariant()); //"NULL" } - QString res( d->driver->valueToSQL(type, *d->paramsIt) ); + TQString res( d->driver->valueToSQL(type, *d->paramsIt) ); --d->paramsItPosition; --d->paramsIt; // ++d->paramsIt; |