The ProjectsTableModel class for a Project table.
More...
#include <projectstablemodel.h>
The ProjectsTableModel class for a Project table.
- Author
- Florent Berbie
- See Also
- Project
Gui::Widgets::WdgModels::ProjectsTableModel::ProjectsTableModel |
( |
| ) |
|
void Gui::Widgets::WdgModels::ProjectsTableModel::append |
( |
const Project & |
project | ) |
|
int Gui::Widgets::WdgModels::ProjectsTableModel::columnCount |
( |
const QModelIndex & |
| ) |
const |
int Gui::Widgets::WdgModels::ProjectsTableModel::count |
( |
| ) |
|
QVariant Gui::Widgets::WdgModels::ProjectsTableModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
ProjectsTableModel::data Obtains data of a specify cell.
- Parameters
-
index | The cell who we want data |
role | The role of set |
- Returns
- The data of cell
Qt::ItemFlags Gui::Widgets::WdgModels::ProjectsTableModel::flags |
( |
const QModelIndex & |
index | ) |
const |
QList< Project > Gui::Widgets::WdgModels::ProjectsTableModel::getProjects |
( |
void |
| ) |
const |
QVariant Gui::Widgets::WdgModels::ProjectsTableModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
ProjectsTableModel::headerData Obtains header title of table.
- Parameters
-
section | The number of column |
orientation | The table orientation |
role | |
- Returns
- The Title header of column
void Gui::Widgets::WdgModels::ProjectsTableModel::remove |
( |
const int |
i | ) |
|
int Gui::Widgets::WdgModels::ProjectsTableModel::rowCount |
( |
const QModelIndex & |
| ) |
const |
bool Gui::Widgets::WdgModels::ProjectsTableModel::setData |
( |
const QModelIndex & |
index, |
|
|
const QVariant & |
value, |
|
|
int |
role = Qt::EditRole |
|
) |
| |
ProjectsTableModel::setData Change data of a cell.
- Parameters
-
index | The cell to change data |
value | The new value |
role | The role of cell |
- Returns
- True if we could edit
The documentation for this class was generated from the following files:
- /home/travis/build/FACT-Team/FactDev/src/gui/widgets/widgetsmodels/projectstablemodel.h
- /home/travis/build/FACT-Team/FactDev/src/gui/widgets/widgetsmodels/projectstablemodel.cpp