|
MoleQueue 0.9.0
|
#include <jobitemmodel.h>
Public Types | |
| enum | ColumnNames { MOLEQUEUE_ID = 0 , JOB_TITLE , NUM_CORES , QUEUE_NAME , PROGRAM_NAME , JOB_STATE , COLUMN_COUNT } |
| enum | UserRoles { FetchJobRole = Qt::UserRole } |
Public Slots | |
| void | jobUpdated (const MoleQueue::Job &job) |
Signals | |
| void | rowCountChanged () |
Public Member Functions | |
| JobItemModel (QObject *parentObject=0) | |
| void | setJobManager (JobManager *jobManager) |
| JobManager * | jobManager () const |
| QModelIndex | parent (const QModelIndex &) const |
| int | rowCount (const QModelIndex &theModelIndex=QModelIndex()) const |
| int | columnCount (const QModelIndex &modelIndex=QModelIndex()) const |
| QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
| QVariant | data (const QModelIndex &modelIndex, int role=Qt::DisplayRole) const |
| bool | removeRows (int row, int count, const QModelIndex &) |
| bool | insertRows (int row, int count, const QModelIndex &) |
| Qt::ItemFlags | flags (const QModelIndex &modelIndex) const |
| QModelIndex | index (int row, int column, const QModelIndex &modelIndex=QModelIndex()) const |
Protected Attributes | |
| JobManager * | m_jobManager |
Item model for interacting with jobs.
| bool removeRows | ( | int | row, |
| int | count, | ||
| const QModelIndex & | ) |
Remove the rows from the model. Does not modify the underlying data structure.
| bool insertRows | ( | int | row, |
| int | count, | ||
| const QModelIndex & | ) |
Insert rows into the model. Does not modify the underlying data structure.