The BillingsTableModel class for a Billing table.
More...
#include <billingstablemodel.h>
The BillingsTableModel class for a Billing table.
- Author
- Florent Berbie
- See Also
- Billing
Gui::Widgets::WdgModels::BillingsTableModel::BillingsTableModel |
( |
| ) |
|
void Gui::Widgets::WdgModels::BillingsTableModel::append |
( |
const Billing & |
billing | ) |
|
int Gui::Widgets::WdgModels::BillingsTableModel::columnCount |
( |
const QModelIndex & |
| ) |
const |
int Gui::Widgets::WdgModels::BillingsTableModel::count |
( |
| ) |
|
QVariant Gui::Widgets::WdgModels::BillingsTableModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
BillingsTableModel::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::BillingsTableModel::flags |
( |
const QModelIndex & |
index | ) |
const |
QList< Billing > Gui::Widgets::WdgModels::BillingsTableModel::getBillings |
( |
| ) |
const |
BillingsTableModel::getbillings Return the list of billings.
- Returns
- list of billings
QVariant Gui::Widgets::WdgModels::BillingsTableModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
BillingsTableModel::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::BillingsTableModel::remove |
( |
const int |
i | ) |
|
int Gui::Widgets::WdgModels::BillingsTableModel::rowCount |
( |
const QModelIndex & |
| ) |
const |
bool Gui::Widgets::WdgModels::BillingsTableModel::setData |
( |
const QModelIndex & |
index, |
|
|
const QVariant & |
value, |
|
|
int |
role = Qt::EditRole |
|
) |
| |
BillingsTableModel::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/billingstablemodel.h
- /home/travis/build/FACT-Team/FactDev/src/gui/widgets/widgetsmodels/billingstablemodel.cpp