|
| QModelIndex | addItem (const QModelIndex &aParent=QModelIndex(), bool aSignal=true) |
| | Creates a new row in the model. More...
|
| |
| void | addOptions (const QString &aMappingTable, const QString &aMasterColumn, const QString &aAttribColumn, const QString &aAttribTable, const QString &aNameColumn) |
| | Add a slave options definition. More...
|
| |
| void | addSlaveTable (BpsTable *aTable, const QString &aRefColumn) |
| | Add a slave table. More...
|
| |
| QVariantList | allKeys (const QModelIndex &aParent=QModelIndex()) const |
| | Fetches all yet not fetched rows from database, and returns all record keys. More...
|
| |
| | BpsTableModel (BpsTable *aTable, QObject *aParent) |
| | Create a master table model. More...
|
| |
| bool | canAdd () const |
| |
| bool | canDelete () const |
| |
| bool | canEdit () const |
| |
| bool | canMove () const |
| |
| bool | canPaste () const |
| |
| void | copy (const QModelIndexList &aIndexList) |
| | Copy items to clipboard. More...
|
| |
| void | deleteItem (const QModelIndex &aIndex) |
| | Delete a single row from the model. More...
|
| |
| void | deleteItems (const QModelIndexList &aIndexList) |
| | Delete a number of rows from the model. More...
|
| |
| void | enableTree (bool aEnable) |
| | Enables or disables tree mode. More...
|
| |
| QModelIndex | firstIndex (const QModelIndex &aParent=QModelIndex()) |
| | Get index of first item. More...
|
| |
| bool | isModified () const |
| |
| bool | isReadOnly () const |
| |
| bool | isTree () const |
| |
| BpsTableItem * | item (const QModelIndex &aIndex) const |
| | Get the table item of a certain index. More...
|
| |
| QVariant | key (const QModelIndex &aIndex) const |
| |
| QModelIndex | keyIndex (const QVariant &aKey) const |
| | Get index from a key. More...
|
| |
| QString | keyToolTipLabel () const |
| |
| void | loadAdditionalFields (BpsTableItem *aItem) |
| | Load additional fields of the record, in case they were not yet loaded. More...
|
| |
| void | loadOptions (BpsTableItem *aItem) |
| | Load options of the record from the mapping tables, in case they were not yet loaded. More...
|
| |
| void | loadSlaveModels (BpsTableItem *aItem) |
| | Load slave models of the item, in case they were not yet loaded. More...
|
| |
| void | moveItem (const QModelIndex &aSrc, int aDstRow, const QModelIndex &aDstParent=QModelIndex()) |
| | Moves the source item to the target. More...
|
| |
| QString | optionsAttribTable (const QString &aMappingTable) const |
| | Get the attribute table of a option mapping table. More...
|
| |
| QStringList | optionsMappingTables () const |
| |
| QString | optionsNameColumn (const QString &aMappingTable) const |
| | Get the name column in the attributes table of a option mapping table. More...
|
| |
| void | paste (const QModelIndex &aParent=QModelIndex()) |
| | Paste clipboard data into new items. More...
|
| |
| bool | save (QString &aMessage, QModelIndexList &aIndexes, QString &aColumn) |
| | Save pending changes to the datastore. More...
|
| |
| void | setKeyToolTipLabel (const QString &aLabel) |
| | Set label to display the record key as tool tip. More...
|
| |
| void | setReadOnly (bool aReadOnly) |
| | Enable or disable read-only mode. More...
|
| |
| BpsTable * | slaveTable (const QString &aName) const |
| |
| QStringList | slaveTables () const |
| |
| BpsTable * | table () const |
| |
|
virtual QModelIndex | buddy (const QModelIndex &index) const const |
| |
|
virtual bool | canDropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) const const |
| |
|
virtual bool | canFetchMore (const QModelIndex &parent) const const |
| |
|
bool | checkIndex (const QModelIndex &index, QAbstractItemModel::CheckIndexOptions options) const const |
| |
|
virtual int | columnCount (const QModelIndex &parent) const const=0 |
| |
|
void | columnsAboutToBeInserted (const QModelIndex &parent, int first, int last) |
| |
|
void | columnsAboutToBeMoved (const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destinationParent, int destinationColumn) |
| |
|
void | columnsAboutToBeRemoved (const QModelIndex &parent, int first, int last) |
| |
|
void | columnsInserted (const QModelIndex &parent, int first, int last) |
| |
|
void | columnsMoved (const QModelIndex &parent, int start, int end, const QModelIndex &destination, int column) |
| |
|
void | columnsRemoved (const QModelIndex &parent, int first, int last) |
| |
|
virtual QVariant | data (const QModelIndex &index, int role) const const=0 |
| |
|
void | dataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector< int > &roles) |
| |
|
virtual bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) |
| |
|
virtual void | fetchMore (const QModelIndex &parent) |
| |
|
virtual Qt::ItemFlags | flags (const QModelIndex &index) const const |
| |
|
virtual bool | hasChildren (const QModelIndex &parent) const const |
| |
|
bool | hasIndex (int row, int column, const QModelIndex &parent) const const |
| |
|
virtual QModelIndex | index (int row, int column, const QModelIndex &parent) const const=0 |
| |
|
bool | insertColumn (int column, const QModelIndex &parent) |
| |
|
virtual bool | insertColumns (int column, int count, const QModelIndex &parent) |
| |
|
bool | insertRow (int row, const QModelIndex &parent) |
| |
|
virtual bool | insertRows (int row, int count, const QModelIndex &parent) |
| |
|
virtual QMap< int, QVariant > | itemData (const QModelIndex &index) const const |
| |
|
void | layoutAboutToBeChanged (const QList< QPersistentModelIndex > &parents, QAbstractItemModel::LayoutChangeHint hint) |
| |
|
void | layoutChanged (const QList< QPersistentModelIndex > &parents, QAbstractItemModel::LayoutChangeHint hint) |
| |
|
virtual QModelIndexList | match (const QModelIndex &start, int role, const QVariant &value, int hits, Qt::MatchFlags flags) const const |
| |
|
virtual QMimeData * | mimeData (const QModelIndexList &indexes) const const |
| |
|
virtual QStringList | mimeTypes () const const |
| |
|
void | modelAboutToBeReset () |
| |
|
void | modelReset () |
| |
|
bool | moveColumn (const QModelIndex &sourceParent, int sourceColumn, const QModelIndex &destinationParent, int destinationChild) |
| |
|
virtual bool | moveColumns (const QModelIndex &sourceParent, int sourceColumn, int count, const QModelIndex &destinationParent, int destinationChild) |
| |
|
bool | moveRow (const QModelIndex &sourceParent, int sourceRow, const QModelIndex &destinationParent, int destinationChild) |
| |
|
virtual bool | moveRows (const QModelIndex &sourceParent, int sourceRow, int count, const QModelIndex &destinationParent, int destinationChild) |
| |
|
virtual QModelIndex | parent (const QModelIndex &index) const const=0 |
| |
|
| QAbstractItemModel (QObject *parent) |
| |
|
bool | removeColumn (int column, const QModelIndex &parent) |
| |
|
virtual bool | removeColumns (int column, int count, const QModelIndex &parent) |
| |
|
bool | removeRow (int row, const QModelIndex &parent) |
| |
|
virtual bool | removeRows (int row, int count, const QModelIndex &parent) |
| |
|
virtual void | revert () |
| |
|
virtual QHash< int, QByteArray > | roleNames () const const |
| |
|
virtual int | rowCount (const QModelIndex &parent) const const=0 |
| |
|
void | rowsAboutToBeInserted (const QModelIndex &parent, int start, int end) |
| |
|
void | rowsAboutToBeMoved (const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destinationParent, int destinationRow) |
| |
|
void | rowsAboutToBeRemoved (const QModelIndex &parent, int first, int last) |
| |
|
void | rowsInserted (const QModelIndex &parent, int first, int last) |
| |
|
void | rowsMoved (const QModelIndex &parent, int start, int end, const QModelIndex &destination, int row) |
| |
|
void | rowsRemoved (const QModelIndex &parent, int first, int last) |
| |
|
virtual bool | setData (const QModelIndex &index, const QVariant &value, int role) |
| |
|
virtual bool | setItemData (const QModelIndex &index, const QMap< int, QVariant > &roles) |
| |
|
void | setSupportedDragActions (Qt::DropActions actions) |
| |
|
virtual QModelIndex | sibling (int row, int column, const QModelIndex &index) const const |
| |
|
virtual void | sort (int column, Qt::SortOrder order) |
| |
|
virtual QSize | span (const QModelIndex &index) const const |
| |
|
virtual bool | submit () |
| |
|
virtual Qt::DropActions | supportedDragActions () const const |
| |
|
virtual Qt::DropActions | supportedDropActions () const const |
| |
|
bool | blockSignals (bool block) |
| |
|
const QObjectList & | children () const const |
| |
|
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const |
| |
|
void | deleteLater () |
| |
|
void | destroyed (QObject *obj) |
| |
|
bool | disconnect (const char *signal, const QObject *receiver, const char *method) const const |
| |
|
bool | disconnect (const QObject *receiver, const char *method) const const |
| |
|
void | dumpObjectInfo () |
| |
|
void | dumpObjectInfo () const const |
| |
|
void | dumpObjectTree () |
| |
|
void | dumpObjectTree () const const |
| |
|
QList< QByteArray > | dynamicPropertyNames () const const |
| |
|
virtual bool | event (QEvent *e) |
| |
|
virtual bool | eventFilter (QObject *watched, QEvent *event) |
| |
|
T | findChild (const QString &name, Qt::FindChildOptions options) const const |
| |
|
QList< T > | findChildren (const QRegExp ®Exp, Qt::FindChildOptions options) const const |
| |
|
QList< T > | findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const |
| |
|
QList< T > | findChildren (const QString &name, Qt::FindChildOptions options) const const |
| |
|
bool | inherits (const char *className) const const |
| |
|
void | installEventFilter (QObject *filterObj) |
| |
|
bool | isWidgetType () const const |
| |
|
bool | isWindowType () const const |
| |
|
void | killTimer (int id) |
| |
|
virtual const QMetaObject * | metaObject () const const |
| |
|
void | moveToThread (QThread *targetThread) |
| |
|
QString | objectName () const const |
| |
|
void | objectNameChanged (const QString &objectName) |
| |
|
QObject * | parent () const const |
| |
|
QVariant | property (const char *name) const const |
| |
|
| Q_CLASSINFO (Name, Value) |
| |
|
| Q_DISABLE_COPY (Class) |
| |
|
| Q_DISABLE_COPY_MOVE (Class) |
| |
|
| Q_DISABLE_MOVE (Class) |
| |
|
| Q_EMIT Q_EMIT |
| |
|
| Q_ENUM (...) |
| |
|
| Q_ENUM_NS (...) |
| |
|
| Q_ENUMS (...) |
| |
|
| Q_FLAG (...) |
| |
|
| Q_FLAG_NS (...) |
| |
|
| Q_FLAGS (...) |
| |
|
| Q_GADGET Q_GADGET |
| |
|
| Q_INTERFACES (...) |
| |
|
| Q_INVOKABLE Q_INVOKABLE |
| |
|
| Q_NAMESPACE Q_NAMESPACE |
| |
|
| Q_NAMESPACE_EXPORT (EXPORT_MACRO) |
| |
|
| Q_OBJECT Q_OBJECT |
| |
|
| Q_PROPERTY (...) |
| |
|
| Q_REVISION Q_REVISION |
| |
|
| Q_SET_OBJECT_NAME (Object) |
| |
|
| Q_SIGNAL Q_SIGNAL |
| |
|
| Q_SIGNALS Q_SIGNALS |
| |
|
| Q_SLOT Q_SLOT |
| |
|
| Q_SLOTS Q_SLOTS |
| |
|
T | qFindChild (const QObject *obj, const QString &name) |
| |
|
QList< T > | qFindChildren (const QObject *obj, const QRegExp ®Exp) |
| |
|
QList< T > | qFindChildren (const QObject *obj, const QString &name) |
| |
|
| QObject (QObject *parent) |
| |
|
T | qobject_cast (const QObject *object) |
| |
|
T | qobject_cast (QObject *object) |
| |
|
| QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT |
| |
|
void | removeEventFilter (QObject *obj) |
| |
|
void | setObjectName (const QString &name) |
| |
|
void | setParent (QObject *parent) |
| |
|
bool | setProperty (const char *name, const QVariant &value) |
| |
|
bool | signalsBlocked () const const |
| |
|
int | startTimer (int interval, Qt::TimerType timerType) |
| |
|
int | startTimer (std::chrono::milliseconds time, Qt::TimerType timerType) |
| |
|
QThread * | thread () const const |
| |
|
| | BpsTableModel (BpsTable *aTable, const QString &aRefColumn, BpsTableItem *aMasterItem) |
| | Constructor for slave table models. More...
|
| |
| virtual BpsTableModel * | createSlaveModel (BpsTable *aTable, const QString &aRefColumn, BpsTableItem *aMasterItem) |
| | Create a slave table model. More...
|
| |
| virtual void | deleteTableItem (BpsTable *aTable, BpsTableItem *aItem) |
| | Delete a existing item from the database. More...
|
| |
| virtual void | insertTableItem (BpsTable *aTable, BpsTableItem *aItem) |
| | Inserts a new item into the database. More...
|
| |
| virtual void | loadTableItem (BpsTable *aTable, BpsTableItem *aItem, bool aAdditionalFields) |
| | Overload this method to process items immediately after loading from the database. More...
|
| |
| virtual void | loadTableOptions (BpsTable *aTable, BpsTableItem *aItem, const QString &aMappingTable) |
| | Overload this method to process options immediately after loading from the database. More...
|
| |
| virtual void | updateTableItem (BpsTable *aTable, BpsTableItem *aItem) |
| | Update a existing item into the database. More...
|
| |
|
void | beginInsertColumns (const QModelIndex &parent, int first, int last) |
| |
|
void | beginInsertRows (const QModelIndex &parent, int first, int last) |
| |
|
bool | beginMoveColumns (const QModelIndex &sourceParent, int sourceFirst, int sourceLast, const QModelIndex &destinationParent, int destinationChild) |
| |
|
bool | beginMoveRows (const QModelIndex &sourceParent, int sourceFirst, int sourceLast, const QModelIndex &destinationParent, int destinationChild) |
| |
|
void | beginRemoveColumns (const QModelIndex &parent, int first, int last) |
| |
|
void | beginRemoveRows (const QModelIndex &parent, int first, int last) |
| |
|
void | beginResetModel () |
| |
|
void | changePersistentIndex (const QModelIndex &from, const QModelIndex &to) |
| |
|
void | changePersistentIndexList (const QModelIndexList &from, const QModelIndexList &to) |
| |
|
QModelIndex | createIndex (int row, int column, quintptr id) const const |
| |
|
QModelIndex | createIndex (int row, int column, void *ptr) const const |
| |
|
void | endInsertColumns () |
| |
|
void | endInsertRows () |
| |
|
void | endMoveColumns () |
| |
|
void | endMoveRows () |
| |
|
void | endRemoveColumns () |
| |
|
void | endRemoveRows () |
| |
|
void | endResetModel () |
| |
|
QModelIndexList | persistentIndexList () const const |
| |
|
void | reset () |
| |
|
void | resetInternalData () |
| |
|
void | setRoleNames (const QHash< int, QByteArray > &roleNames) |
| |
|
virtual void | childEvent (QChildEvent *event) |
| |
|
virtual void | connectNotify (const QMetaMethod &signal) |
| |
|
virtual void | customEvent (QEvent *event) |
| |
|
virtual void | disconnectNotify (const QMetaMethod &signal) |
| |
|
bool | isSignalConnected (const QMetaMethod &signal) const const |
| |
|
int | receivers (const char *signal) const const |
| |
|
QObject * | sender () const const |
| |
|
int | senderSignalIndex () const const |
| |
|
virtual void | timerEvent (QTimerEvent *event) |
| |
A model for hierarchical or flat database tables.
The model also supports slave table models: tables without a own synthetic key but where part of the primary key references to the master table.