FactDev
0.1
|
The ProjectContributoriesTableModel class Table model of contributories linked to projets. More...
#include <projectcontributoriestablemodel.h>
Public Member Functions | |
ProjectContributoriesTableModel (QObject *parent=0) | |
ProjectContributoriesTableModel::ProjectContributoriesTableModel Construct a ProjectContributoriesTableModel. More... | |
int | rowCount (const QModelIndex &) const |
ProjectContributoriesTableModel::rowCount Number of contributories row. More... | |
int | columnCount (const QModelIndex &) const |
ProjectContributoriesTableModel::columnCount Number of column of a contributory. More... | |
QVariant | data (const QModelIndex &index, int role) const |
ProjectContributoriesTableModel::data Obtains data of a specify cell. More... | |
QVariant | headerData (int section, Qt::Orientation orientation, int role) const |
ProjectContributoriesTableModel::headerData Obtains header title of table. More... | |
bool | setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole) |
ProjectContributoriesTableModel::setData Change data of a cell. More... | |
Qt::ItemFlags | flags (const QModelIndex &index) const |
ProjectContributoriesTableModel::flags Differents table flags. More... | |
void | append (QPair< Models::Project *, Models::Rate > p) |
ProjectContributoriesTableModel::append Add a new rate p to a Project. More... | |
void | append () |
ProjectContributoriesTableModel::append Add the current element to the list. | |
bool | allProjectsChosen () |
ProjectContributoriesTableModel::allProjectsChosen Return TRUE if all projects have been selected else FALSE. More... | |
QList< int > & | getSelectedProjects () |
ProjectContributoriesTableModel::getSelectedProjects Return the list of the Project id which are selected. More... | |
void | remove (int index) |
ProjectContributoriesTableModel::remove Remove the element to the index More... | |
QPair< Models::Project *, Models::Rate > | getProject (const int row) |
ProjectContributoriesTableModel::getProject Return the project and it rate linked which correspond to the row More... | |
QList< QPair< Models::Project *, Models::Rate > > | getProjects (void) |
ProjectContributoriesTableModel::getProjects Return a list of the set of projects and their rates linked. More... | |
The ProjectContributoriesTableModel class Table model of contributories linked to projets.
Gui::Widgets::WdgModels::ProjectContributoriesTableModel::ProjectContributoriesTableModel | ( | QObject * | parent = 0 | ) |
ProjectContributoriesTableModel::ProjectContributoriesTableModel Construct a ProjectContributoriesTableModel.
parent | Parent widget |
bool Gui::Widgets::WdgModels::ProjectContributoriesTableModel::allProjectsChosen | ( | ) |
ProjectContributoriesTableModel::allProjectsChosen Return TRUE if all projects have been selected else FALSE.
void Gui::Widgets::WdgModels::ProjectContributoriesTableModel::append | ( | QPair< Models::Project *, Models::Rate > | p | ) |
ProjectContributoriesTableModel::append Add a new rate p to a Project.
p |
int Gui::Widgets::WdgModels::ProjectContributoriesTableModel::columnCount | ( | const QModelIndex & | ) | const |
ProjectContributoriesTableModel::columnCount Number of column of a contributory.
QVariant Gui::Widgets::WdgModels::ProjectContributoriesTableModel::data | ( | const QModelIndex & | index, |
int | role | ||
) | const |
ProjectContributoriesTableModel::data Obtains data of a specify cell.
index | The cell who we want data |
role | The role of set |
Qt::ItemFlags Gui::Widgets::WdgModels::ProjectContributoriesTableModel::flags | ( | const QModelIndex & | index | ) | const |
ProjectContributoriesTableModel::flags Differents table flags.
index | The cell who we want to know flags |
QPair< Models::Project *, Models::Rate > Gui::Widgets::WdgModels::ProjectContributoriesTableModel::getProject | ( | const int | row | ) |
ProjectContributoriesTableModel::getProject Return the project and it rate linked which correspond to the row
row | Row of the project to get |
QList< QPair< Models::Project *, Models::Rate > > Gui::Widgets::WdgModels::ProjectContributoriesTableModel::getProjects | ( | void | ) |
ProjectContributoriesTableModel::getProjects Return a list of the set of projects and their rates linked.
QList< int > & Gui::Widgets::WdgModels::ProjectContributoriesTableModel::getSelectedProjects | ( | ) |
ProjectContributoriesTableModel::getSelectedProjects Return the list of the Project id which are selected.
QVariant Gui::Widgets::WdgModels::ProjectContributoriesTableModel::headerData | ( | int | section, |
Qt::Orientation | orientation, | ||
int | role | ||
) | const |
ProjectContributoriesTableModel::headerData Obtains header title of table.
section | The number of column |
orientation | The table orientation |
role |
void Gui::Widgets::WdgModels::ProjectContributoriesTableModel::remove | ( | int | index | ) |
ProjectContributoriesTableModel::remove Remove the element to the index
index | Index of the element to remove |
int Gui::Widgets::WdgModels::ProjectContributoriesTableModel::rowCount | ( | const QModelIndex & | ) | const |
ProjectContributoriesTableModel::rowCount Number of contributories row.
bool Gui::Widgets::WdgModels::ProjectContributoriesTableModel::setData | ( | const QModelIndex & | index, |
const QVariant & | value, | ||
int | role = Qt::EditRole |
||
) |
ProjectContributoriesTableModel::setData Change data of a cell.
index | The cell to change data |
value | The new value |
role | THe role of cell |