KDb
KDbRecordEditBuffer.cpp
31 , m_defaultValuesDbBufferIt(dbAwareBuffer ? new QMap<KDbQueryColumnInfo*, bool>::ConstIterator() : nullptr)
50const QVariant* KDbRecordEditBuffer::at(KDbQueryColumnInfo* ci, bool useDefaultValueIfPossible) const
66 && ci->field() && !ci->field()->defaultValue().isNull() && KDb::isDefaultValueAllowed(*ci->field())
111 m_dbBuffer->remove(const_cast<KDbQueryColumnInfo*>(&ci)); // const_cast ok here, we won't modify ci
Helper class that assigns additional information for the column in a query.
Definition KDbQueryColumnInfo.h:41
provides data for single edited database record
Definition KDbRecordEditBuffer.h:77
void removeAt(const KDbQueryColumnInfo &ci)
Removes value from db-aware buffer's column ci.
Definition KDbRecordEditBuffer.cpp:105
const QVariant * at(KDbQueryColumnInfo *ci, bool useDefaultValueIfPossible=true) const
Definition KDbRecordEditBuffer.cpp:50
bool hasDefaultValueAt(const KDbQueryColumnInfo &ci) const
Useful only for db-aware buffer:
Definition KDbRecordEditBuffer.cpp:166
void insert(KDbQueryColumnInfo *ci, const QVariant &val)
Inserts value val for db-aware buffer's column ci Does nothing if ci is nullptr.
Definition KDbRecordEditBuffer.cpp:151
KDB_EXPORT bool isDefaultValueAllowed(const KDbField &field)
QDebug operator<<(QDebug dbg, const PerceptualColor::MultiSpinBoxSection &value)
QDebug & nospace()
QDebug & space()
ConstIterator
void clear()
iterator end()
iterator find(const Key &key)
iterator insert(const Key &key, const T &value)
bool isEmpty() const const
bool remove(const Key &key)
ConstIterator
void clear()
const_iterator constEnd() const const
const_iterator constFind(const Key &key) const const
iterator insert(const Key &key, const T &value)
bool isEmpty() const const
size_type remove(const Key &key)
T value(const Key &key, const T &defaultValue) const const
QFuture< void > map(Iterator begin, Iterator end, MapFunctor &&function)
bool isNull() const const
T value() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:07 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:07 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.