The CustomersTableModel class for a customer table.
More...
#include <customerstablemodel.h>
The CustomersTableModel class for a customer table.
- Author
- Florent Berbie
- See Also
- Customer
Gui::Widgets::WdgModels::CustomersTableModel::CustomersTableModel |
( |
QObject * |
parent = 0 | ) |
|
void Gui::Widgets::WdgModels::CustomersTableModel::append |
( |
const Customer & |
customer | ) |
|
int Gui::Widgets::WdgModels::CustomersTableModel::columnCount |
( |
const QModelIndex & |
| ) |
const |
int Gui::Widgets::WdgModels::CustomersTableModel::count |
( |
| ) |
|
QVariant Gui::Widgets::WdgModels::CustomersTableModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
CustomersTableModel::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::CustomersTableModel::flags |
( |
const QModelIndex & |
index | ) |
const |
QList< Customer > Gui::Widgets::WdgModels::CustomersTableModel::getCustomers |
( |
| ) |
const |
QVariant Gui::Widgets::WdgModels::CustomersTableModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
CustomersTableModel::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::CustomersTableModel::remove |
( |
const int |
i | ) |
|
int Gui::Widgets::WdgModels::CustomersTableModel::rowCount |
( |
const QModelIndex & |
| ) |
const |
bool Gui::Widgets::WdgModels::CustomersTableModel::setData |
( |
const QModelIndex & |
index, |
|
|
const QVariant & |
value, |
|
|
int |
role = Qt::EditRole |
|
) |
| |
CustomersTableModel::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/customerstablemodel.h
- /home/travis/build/FACT-Team/FactDev/src/gui/widgets/widgetsmodels/customerstablemodel.cpp