diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-06-25 05:28:35 +0000 |
commit | f008adb5a77e094eaf6abf3fc0f36958e66896a5 (patch) | |
tree | 8e9244c4d4957c36be81e15b566b4aa5ea26c982 /kexi/plugins/scripting/kexidb/kexidbcursor.cpp | |
parent | 1210f27b660efb7b37ff43ec68763e85a403471f (diff) | |
download | koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.tar.gz koffice-f008adb5a77e094eaf6abf3fc0f36958e66896a5.zip |
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
Diffstat (limited to 'kexi/plugins/scripting/kexidb/kexidbcursor.cpp')
-rw-r--r-- | kexi/plugins/scripting/kexidb/kexidbcursor.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kexi/plugins/scripting/kexidb/kexidbcursor.cpp b/kexi/plugins/scripting/kexidb/kexidbcursor.cpp index 3bc1763d..bb9f53df 100644 --- a/kexi/plugins/scripting/kexidb/kexidbcursor.cpp +++ b/kexi/plugins/scripting/kexidb/kexidbcursor.cpp @@ -58,14 +58,14 @@ KexiDBCursor::~KexiDBCursor() void KexiDBCursor::clearBuffers() { - QMap<Q_LLONG, Record*>::ConstIterator + TQMap<TQ_LLONG, Record*>::ConstIterator it( m_modifiedrecords.constBegin() ), end( m_modifiedrecords.constEnd() ); for( ; it != end; ++it) delete it.data(); m_modifiedrecords.clear(); } -const QString KexiDBCursor::getClassName() const +const TQString KexiDBCursor::getClassName() const { return "Kross::KexiDB::KexiDBCursor"; } @@ -83,15 +83,15 @@ bool KexiDBCursor::moveNext() { return m_cursor->moveNext(); } bool KexiDBCursor::bof() { return m_cursor->bof(); } bool KexiDBCursor::eof() { return m_cursor->eof(); } -Q_LLONG KexiDBCursor::at() { return m_cursor->at(); } +TQ_LLONG KexiDBCursor::at() { return m_cursor->at(); } uint KexiDBCursor::fieldCount() { return m_cursor->fieldCount(); } -QVariant KexiDBCursor::value(uint index) +TQVariant KexiDBCursor::value(uint index) { return m_cursor->value(index); } -bool KexiDBCursor::setValue(uint index, QVariant value) +bool KexiDBCursor::setValue(uint index, TQVariant value) { ::KexiDB::QuerySchema* query = m_cursor->query(); if(! query) { @@ -105,9 +105,9 @@ bool KexiDBCursor::setValue(uint index, QVariant value) return false; } - const Q_LLONG position = m_cursor->at(); - if(! m_modifiedrecords.contains(position)) - m_modifiedrecords.replace(position, new Record(m_cursor)); + const TQ_LLONG position = m_cursor->at(); + if(! m_modifiedrecords.tqcontains(position)) + m_modifiedrecords.tqreplace(position, new Record(m_cursor)); m_modifiedrecords[position]->buffer->insert(*column, value); return true; } @@ -124,7 +124,7 @@ bool KexiDBCursor::save() m_cursor->close(); bool ok = true; - QMap<Q_LLONG, Record*>::ConstIterator + TQMap<TQ_LLONG, Record*>::ConstIterator it( m_modifiedrecords.constBegin() ), end( m_modifiedrecords.constEnd() ); for( ; it != end; ++it) { bool b = m_cursor->updateRow(it.data()->rowdata, * it.data()->buffer, m_cursor->isBuffered()); |