kexitableviewdata.cpp File Reference
#include "kexitableviewdata.h"
#include <kexiutils/validator.h>
#include <kexidb/field.h>
#include <kexidb/queryschema.h>
#include <kexidb/roweditbuffer.h>
#include <kexidb/cursor.h>
#include <kexidb/utils.h>
#include <kexi.h>
#include <kdebug.h>
#include <klocale.h>
#include <qapplication.h>
#include "chartable.txt"
#include "kexitableviewdata.moc"
Go to the source code of this file.
Defines | |
| #define | CMP_NULLS(item1, item2) |
| compare NULLs : NULL is smaller than everything | |
| #define | CAST_AND_COMPARE(casting, item1, item2) |
| #define | GET_VALUE |
Define Documentation
|
|
Value: CMP_NULLS(item1, item2); \ if (m_leftTmp.casting() < m_rightTmp.casting()) \ return -m_order; \ if (m_leftTmp.casting() > m_rightTmp.casting()) \ return m_order; \ return 0 Definition at line 448 of file kexitableviewdata.cpp. Referenced by KexiTableViewData::cmpDate(), KexiTableViewData::cmpDateTime(), KexiTableViewData::cmpDouble(), KexiTableViewData::cmpInt(), KexiTableViewData::cmpLongLong(), KexiTableViewData::cmpTime(), KexiTableViewData::cmpUInt(), and KexiTableViewData::cmpULongLong(). |
|
|
Value: m_leftTmp = ((KexiTableItem *)item1)->at(m_realSortedColumn); \ if (m_leftTmp.isNull()) \ return -m_order; \ m_rightTmp = ((KexiTableItem *)item2)->at(m_realSortedColumn); \ if (m_rightTmp.isNull()) \ return m_order
Definition at line 440 of file kexitableviewdata.cpp. Referenced by KexiTableViewData::cmpBLOB(), and KexiTableViewData::cmpStr(). |
|
|
Value: if (!val) { \ val = m_cursor \ ? m_pRowEditBuffer->at( *it_f.current()->columnInfo, true /* useDefaultValueIfPossible */ ) \ : m_pRowEditBuffer->at( *f ); \ if (!val) \ val = &(*it_r); /* get old value */ \ } Definition at line 619 of file kexitableviewdata.cpp. Referenced by KexiTableViewData::saveRow(). |
