#include <DocumentModel.h>
Public Member Functions | |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
| DocumentModel (QObject *parent) | |
| 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 |
| bool | setData (const QModelIndex &idx, const QVariant &value, int role) |
| bool | setHeaderData (int section, Qt::Orientation orientation, const QVariant &value, int role=Qt::EditRole) |
| virtual | ~DocumentModel () |
Definition at line 38 of file DocumentModel.h.
| DocumentModel::DocumentModel | ( | QObject * | parent | ) |
Definition at line 256 of file DocumentModel.cpp.
References draftlibs::fcgeo::bind(), Gui::ViewProviderIndex::init(), Gui::DocumentIndex::init(), Gui::ApplicationIndex::init(), Gui::DocumentModelIndex::init(), Gui::Application::Instance, Gui::Application::signalActiveDocument, Gui::Application::signalDeleteDocument, Gui::Application::signalNewDocument, Gui::Application::signalRelabelDocument, and Gui::Application::signalRenameDocument.
| DocumentModel::~DocumentModel | ( | ) | [virtual] |
Definition at line 276 of file DocumentModel.cpp.
| int DocumentModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const |
Definition at line 493 of file DocumentModel.cpp.
| QVariant DocumentModel::data | ( | const QModelIndex & | index, | |
| int | role = Qt::DisplayRole | |||
| ) | const |
Definition at line 498 of file DocumentModel.cpp.
| Qt::ItemFlags DocumentModel::flags | ( | const QModelIndex & | index | ) | const |
Definition at line 512 of file DocumentModel.cpp.
| QVariant DocumentModel::headerData | ( | int | section, | |
| Qt::Orientation | orientation, | |||
| int | role = Qt::DisplayRole | |||
| ) | const |
Definition at line 553 of file DocumentModel.cpp.
References Sketcher::Horizontal.
| QModelIndex DocumentModel::index | ( | int | row, | |
| int | column, | |||
| const QModelIndex & | parent = QModelIndex() | |||
| ) | const |
Definition at line 522 of file DocumentModel.cpp.
References Gui::DocumentModelP::rootItem.
| QModelIndex DocumentModel::parent | ( | const QModelIndex & | index | ) | const |
Definition at line 534 of file DocumentModel.cpp.
References Gui::DocumentModelIndex::parent(), Gui::DocumentModelP::rootItem, and Gui::DocumentModelIndex::row().
| int DocumentModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() |
) | const |
Definition at line 544 of file DocumentModel.cpp.
References Gui::DocumentModelIndex::childCount().
| bool DocumentModel::setData | ( | const QModelIndex & | idx, | |
| const QVariant & | value, | |||
| int | role | |||
| ) |
Definition at line 505 of file DocumentModel.cpp.
| bool DocumentModel::setHeaderData | ( | int | section, | |
| Qt::Orientation | orientation, | |||
| const QVariant & | value, | |||
| int | role = Qt::EditRole | |||
| ) |
Definition at line 564 of file DocumentModel.cpp.
1.6.1