diff options
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()); |