|
| CTSPModel (QObject *parent=0) |
| Class constructor. More...
|
|
void | clear () |
| Resets the table, setting all its elements to 0. More...
|
|
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| Returns the column count in the table. More...
|
|
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
| Returns the data stored under the given role for the item referred to by the index. More...
|
|
Qt::ItemFlags | flags (const QModelIndex &index) const |
| Returns the item flags for the given index. More...
|
|
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
| Returns the data for the given role and section in the header with the specified orientation. More...
|
|
bool | loadTask (const QString &fname) |
| Loads a task from fname. More...
|
|
quint16 | numCities () const |
| Returns the number of cities. More...
|
|
void | randomize () |
| Randomizes the table by setting all its values to random ones. More...
|
|
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| Returns the row count in the table. More...
|
|
bool | saveTask (const QString &fname) |
| Saves current task to fname. More...
|
|
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
| Sets the role data for the item at index to value. More...
|
|
void | setNumCities (int n) |
| Sets number of cities in the current task to n. More...
|
|
| QAbstractTableModel (QObject *parent) |
|
virtual QModelIndex | index (int row, int column, const QModelIndex &parent) const |
|
virtual bool | dropMimeData (const QMimeData *data, Qt::DropAction action, int row, int column, const QModelIndex &parent) |
|
| QAbstractItemModel (QObject *parent) |
|
bool | hasIndex (int row, int column, const QModelIndex &parent) const |
|
virtual QModelIndex | index (int row, int column, const QModelIndex &parent) const =0 |
|
virtual QModelIndex | parent (const QModelIndex &index) const =0 |
|
QModelIndex | sibling (int row, int column, const QModelIndex &index) const |
|
virtual int | rowCount (const QModelIndex &parent) const =0 |
|
virtual int | columnCount (const QModelIndex &parent) const =0 |
|
virtual bool | hasChildren (const QModelIndex &parent) const |
|
virtual QVariant | data (const QModelIndex &index, int role) const =0 |
|
virtual QMap< int, QVariant > | itemData (const QModelIndex &index) const |
|
virtual bool | setItemData (const QModelIndex &index, const QMap< int, QVariant > &roles) |
|
virtual QStringList | mimeTypes () const |
|
virtual QMimeData * | mimeData (const QModelIndexList &indexes) const |
|
virtual Qt::DropActions | supportedDropActions () const |
|
Qt::DropActions | supportedDragActions () const |
|
void | setSupportedDragActions (QFlags< Qt::DropAction > actions) |
|
virtual bool | insertRows (int row, int count, const QModelIndex &parent) |
|
virtual bool | insertColumns (int column, int count, const QModelIndex &parent) |
|
virtual bool | removeRows (int row, int count, const QModelIndex &parent) |
|
virtual bool | removeColumns (int column, int count, const QModelIndex &parent) |
|
bool | insertRow (int row, const QModelIndex &parent) |
|
bool | insertColumn (int column, const QModelIndex &parent) |
|
bool | removeRow (int row, const QModelIndex &parent) |
|
bool | removeColumn (int column, const QModelIndex &parent) |
|
virtual void | fetchMore (const QModelIndex &parent) |
|
virtual bool | canFetchMore (const QModelIndex &parent) const |
|
virtual void | sort (int column, Qt::SortOrder order) |
|
virtual QModelIndex | buddy (const QModelIndex &index) const |
|
virtual QModelIndexList | match (const QModelIndex &start, int role, const QVariant &value, int hits, QFlags< Qt::MatchFlag > flags) const |
|
virtual QSize | span (const QModelIndex &index) const |
|
const QHash< int, QByteArray > & | roleNames () const |
|
void | dataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight) |
|
void | layoutChanged () |
|
void | layoutAboutToBeChanged () |
|
void | rowsAboutToBeInserted (const QModelIndex &parent, int start, int end) |
|
void | rowsInserted (const QModelIndex &parent, int start, int end) |
|
void | rowsAboutToBeRemoved (const QModelIndex &parent, int start, int end) |
|
void | rowsRemoved (const QModelIndex &parent, int start, int end) |
|
void | columnsAboutToBeInserted (const QModelIndex &parent, int start, int end) |
|
void | columnsInserted (const QModelIndex &parent, int start, int end) |
|
void | columnsAboutToBeRemoved (const QModelIndex &parent, int start, int end) |
|
void | columnsRemoved (const QModelIndex &parent, int start, int end) |
|
void | modelAboutToBeReset () |
|
void | modelReset () |
|
void | rowsAboutToBeMoved (const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destinationParent, int destinationRow) |
|
void | rowsMoved (const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destinationParent, int destinationRow) |
|
void | columnsAboutToBeMoved (const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destinationParent, int destinationColumn) |
|
void | columnsMoved (const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destinationParent, int destinationColumn) |
|
virtual bool | submit () |
|
virtual void | revert () |
|
| QObject (QObject *parent) |
|
virtual bool | event (QEvent *e) |
|
virtual bool | eventFilter (QObject *watched, QEvent *event) |
|
virtual const QMetaObject * | metaObject () const |
|
QString | objectName () const |
|
void | setObjectName (const QString &name) |
|
bool | isWidgetType () const |
|
bool | signalsBlocked () const |
|
bool | blockSignals (bool block) |
|
QThread * | thread () const |
|
void | moveToThread (QThread *targetThread) |
|
int | startTimer (int interval) |
|
void | killTimer (int id) |
|
T | findChild (const QString &name) const |
|
QList< T > | findChildren (const QString &name) const |
|
QList< T > | findChildren (const QRegExp ®Exp) const |
|
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
|
const QObjectList & | children () const |
|
void | setParent (QObject *parent) |
|
void | installEventFilter (QObject *filterObj) |
|
void | removeEventFilter (QObject *obj) |
|
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
|
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
|
bool | disconnect (const QObject *receiver, const char *method) |
|
void | dumpObjectTree () |
|
void | dumpObjectInfo () |
|
bool | setProperty (const char *name, const QVariant &value) |
|
QVariant | property (const char *name) const |
|
QList< QByteArray > | dynamicPropertyNames () const |
|
void | destroyed (QObject *obj) |
|
QObject * | parent () const |
|
bool | inherits (const char *className) const |
|
void | deleteLater () |
|
| QObject (QObject *parent, const char *name) |
|
void | insertChild (QObject *object) |
|
void | removeChild (QObject *object) |
|
bool | isA (const char *className) const |
|
const char * | className () const |
|
const char * | name () const |
|
const char * | name (const char *defaultName) const |
|
void | setName (const char *name) |
|
|
QString | tr (const char *sourceText, const char *disambiguation, int n) |
|
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
|
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
|
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
|
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
|
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
|
QModelIndex | createIndex (int row, int column, void *ptr) const |
|
QModelIndex | createIndex (int row, int column, int id) const |
|
QModelIndex | createIndex (int row, int column, quint32 id) const |
|
void | beginInsertRows (const QModelIndex &parent, int first, int last) |
|
void | endInsertRows () |
|
void | beginRemoveRows (const QModelIndex &parent, int first, int last) |
|
void | endRemoveRows () |
|
bool | beginMoveRows (const QModelIndex &sourceParent, int sourceFirst, int sourceLast, const QModelIndex &destinationParent, int destinationChild) |
|
void | endMoveRows () |
|
void | beginInsertColumns (const QModelIndex &parent, int first, int last) |
|
void | endInsertColumns () |
|
void | beginRemoveColumns (const QModelIndex &parent, int first, int last) |
|
void | endRemoveColumns () |
|
bool | beginMoveColumns (const QModelIndex &sourceParent, int sourceFirst, int sourceLast, const QModelIndex &destinationParent, int destinationChild) |
|
void | endMoveColumns () |
|
void | reset () |
|
void | beginResetModel () |
|
void | endResetModel () |
|
void | changePersistentIndex (const QModelIndex &from, const QModelIndex &to) |
|
void | changePersistentIndexList (const QModelIndexList &from, const QModelIndexList &to) |
|
QModelIndexList | persistentIndexList () const |
|
void | setRoleNames (const QHash< int, QByteArray > &roleNames) |
|
void | resetInternalData () |
|
QObject * | sender () const |
|
int | senderSignalIndex () const |
|
int | receivers (const char *signal) const |
|
virtual void | timerEvent (QTimerEvent *event) |
|
virtual void | childEvent (QChildEvent *event) |
|
virtual void | customEvent (QEvent *event) |
|
virtual void | connectNotify (const char *signal) |
|
virtual void | disconnectNotify (const char *signal) |
|
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
|
QByteArray | normalizeSignalSlot (const char *signalSlot) |
|
| objectName |
|
This class implements table model for manipulating a task.
- Author
- Copyright © 2007-2016 Oleksii Serdiuk <contacts[at]oleksii[dot]name>