10 #include <QVariantMap>
21 friend class BpsTableModelPrivate;
38 CacheDisplayColumnStart = 1000000
209 int fieldCount()
const;
212 bool setValue(
int aIndex,
const QVariant& aValue);
218 int childCount()
const;
226 bool childrenLoaded()
const;
227 void setChildrenLoaded(
bool aLoaded);
#define BPS_PRIVATE(Class)
Declare pointer to private object in a public class.
Definition: bpsglobals.h:102
Public include file for BPS GUI library macros.
#define BPSGUI_EXPORT
Declare class an import from the shared library.
Definition: bpsgui_global.h:22
Public include file for BpsTableOptions type.
Items used by BpsTableModel.
Definition: bpstableitem.h:18
CacheIndex
Reserved cache indexes.
Definition: bpstableitem.h:37
bool hasField(const QString &aField)
Check if the field is present.
QVariantMap changedValues() const
BpsTableModel * slaveModel(const QString &aTable)
Get the named slave table model.
QVariant key() const
The record key (value of c_key field), only valid when status in not StatusAdded.
void addFields(const QSqlRecord &aRecord)
Add more fields to the record.
void setData(const QVariant &aValue, int aIndex=0)
Set application data.
BpsTableOptions options(const QString &aMappingTable) const
Get the named option key set.
void setSaved()
Set the item status to saved.
QVariantMap values() const
QVariant data(int aIndex=0) const
Get application data.
void setCache(const QString &aField, const QVariant &aValue)
Set the cache value of the named field.
bool hasOptions(const QString &aTable)
Check if the options are present.
bool setValue(const QString &aField, const QVariant &aValue)
Set the value of the named field.
Status
Current status of the item.
Definition: bpstableitem.h:27
void setIsEditable(bool aIsEditable)
Enable / disable editing of a field.
void setCache(int aIndex, const QVariant &aValue)
Set the indexed cache value.
QVariant cache(const QString &aField) const
Get the named cache value.
bool setOptions(const QString &aMappingTable, const BpsTableOptions &aOptions)
Set the options of the named set.
QVariant value(const QString &aField) const
Get the named value.
QVariant cache(int aIndex) const
Get the indexed cache value.
A model for hierarchical or flat database tables.
Definition: bpstablemodel.h:21