#include <documentchoosermodel.h>
Signals | |
void | documentRemoved (int fileid) |
Public Member Functions | |
DocumentChooserModel (QObject *parent=0) | |
~DocumentChooserModel () | |
QVariant | data (const QModelIndex &index, int role) const |
Qt::ItemFlags | flags (const QModelIndex &index) const |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
QModelIndex | parent (const QModelIndex &index) const |
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
DocumentItem * | rootItem () |
DocumentItem * | documentItem (int fileid, int documentType) const |
DocumentItem * | documentItem (QString documenttype, QString filename) const |
AbstractModel * | abstractModel (int fileid, int documentType) const |
void | addDocument (AbstractModel *model) |
void | deleteDocument (int fileid, int documentType) |
void | clear () |
bool | fileExists (const QString &name) const |
CostTypeModel * | costTypeModelById (int fileId) |
Definition at line 10 of file documentchoosermodel.h.
DocumentChooserModel::DocumentChooserModel | ( | QObject * | parent = 0 |
) |
Definition at line 9 of file documentchoosermodel.cpp.
DocumentChooserModel::~DocumentChooserModel | ( | ) |
Definition at line 19 of file documentchoosermodel.cpp.
AbstractModel * DocumentChooserModel::abstractModel | ( | int | fileid, | |
int | documentType | |||
) | const |
Definition at line 129 of file documentchoosermodel.cpp.
void DocumentChooserModel::addDocument | ( | AbstractModel * | model | ) |
void DocumentChooserModel::clear | ( | ) |
int DocumentChooserModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const |
CostTypeModel * DocumentChooserModel::costTypeModelById | ( | int | fileId | ) |
QVariant DocumentChooserModel::data | ( | const QModelIndex & | index, | |
int | role | |||
) | const |
void DocumentChooserModel::deleteDocument | ( | int | fileid, | |
int | documentType | |||
) |
DocumentItem * DocumentChooserModel::documentItem | ( | QString | documenttype, | |
QString | filename | |||
) | const |
DocumentItem * DocumentChooserModel::documentItem | ( | int | fileid, | |
int | documentType | |||
) | const |
Definition at line 85 of file documentchoosermodel.cpp.
void DocumentChooserModel::documentRemoved | ( | int | fileid | ) | [signal] |
bool DocumentChooserModel::fileExists | ( | const QString & | name | ) | const |
Qt::ItemFlags DocumentChooserModel::flags | ( | const QModelIndex & | index | ) | const |
Definition at line 151 of file documentchoosermodel.cpp.
QVariant DocumentChooserModel::headerData | ( | int | section, | |
Qt::Orientation | orientation, | |||
int | role = Qt::DisplayRole | |||
) | const |
QModelIndex DocumentChooserModel::index | ( | int | row, | |
int | column, | |||
const QModelIndex & | parent = QModelIndex() | |||
) | const |
QModelIndex DocumentChooserModel::parent | ( | const QModelIndex & | index | ) | const |
DocumentItem* DocumentChooserModel::rootItem | ( | ) | [inline] |
Definition at line 27 of file documentchoosermodel.h.
int DocumentChooserModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const |