From f008adb5a77e094eaf6abf3fc0f36958e66896a5 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 25 Jun 2011 05:28:35 +0000 Subject: TQt4 port koffice This should enable compilation under both Qt3 and Qt4; fixes for any missed components will be forthcoming git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/koffice@1238284 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kexi/kexidb/drivers/sqlite/sqlitepreparedstatement.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'kexi/kexidb/drivers/sqlite/sqlitepreparedstatement.cpp') diff --git a/kexi/kexidb/drivers/sqlite/sqlitepreparedstatement.cpp b/kexi/kexidb/drivers/sqlite/sqlitepreparedstatement.cpp index 9103b131e..bccfd11b5 100644 --- a/kexi/kexidb/drivers/sqlite/sqlitepreparedstatement.cpp +++ b/kexi/kexidb/drivers/sqlite/sqlitepreparedstatement.cpp @@ -93,7 +93,7 @@ bool SQLitePreparedStatement::execute() else assert(0); //impl. error - for (QValueListConstIterator it = m_args.constBegin(); + for (TQValueListConstIterator it = m_args.constBegin(); (field = itFields.current()); ++it, ++itFields, arg++) { if (it==m_args.constEnd() || (*it).isNull()) {//no value to bind or the value is null: bind NULL @@ -106,7 +106,7 @@ bool SQLitePreparedStatement::execute() } if (field->isTextType()) { //! @todo optimize: make a static copy so SQLITE_STATIC can be used - QCString utf8String((*it).toString().utf8()); + TQCString utf8String((*it).toString().utf8()); res = sqlite3_bind_text(prepared_st_handle, arg, (const char*)utf8String, utf8String.length(), SQLITE_TRANSIENT /*??*/); if (SQLITE_OK != res) { @@ -150,7 +150,7 @@ bool SQLitePreparedStatement::execute() { //! @todo what about unsigned > LLONG_MAX ? bool ok; - Q_LLONG value = (*it).toLongLong(&ok); + TQ_LLONG value = (*it).toLongLong(&ok); if (ok) { res = sqlite3_bind_int64(prepared_st_handle, arg, value); if (SQLITE_OK != res) { @@ -169,7 +169,7 @@ bool SQLitePreparedStatement::execute() } case KexiDB::Field::Boolean: res = sqlite3_bind_text(prepared_st_handle, arg, - QString::number((*it).toBool() ? 1 : 0).latin1(), + TQString::number((*it).toBool() ? 1 : 0).latin1(), 1, SQLITE_TRANSIENT /*??*/); if (SQLITE_OK != res) { //! @todo msg? @@ -178,7 +178,7 @@ bool SQLitePreparedStatement::execute() break; case KexiDB::Field::Time: res = sqlite3_bind_text(prepared_st_handle, arg, - (*it).toTime().toString(Qt::ISODate).latin1(), + TQString((*it).toTime().toString(Qt::ISODate)).latin1(), sizeof("HH:MM:SS"), SQLITE_TRANSIENT /*??*/); if (SQLITE_OK != res) { //! @todo msg? @@ -187,7 +187,7 @@ bool SQLitePreparedStatement::execute() break; case KexiDB::Field::Date: res = sqlite3_bind_text(prepared_st_handle, arg, - (*it).toDate().toString(Qt::ISODate).latin1(), + TQString((*it).toDate().toString(Qt::ISODate)).latin1(), sizeof("YYYY-MM-DD"), SQLITE_TRANSIENT /*??*/); if (SQLITE_OK != res) { //! @todo msg? @@ -205,7 +205,7 @@ bool SQLitePreparedStatement::execute() break; case KexiDB::Field::BLOB: { - const QByteArray byteArray((*it).toByteArray()); + const TQByteArray byteArray((*it).toByteArray()); res = sqlite3_bind_blob(prepared_st_handle, arg, (const char*)byteArray, byteArray.size(), SQLITE_TRANSIENT /*??*/); if (SQLITE_OK != res) { -- cgit v1.2.3