Item model for viewing Variables in a tree view.
More...
#include <InformationItemModel.h>
|
| InformationItemModel (Gii::SelectionMode mode, Gii::TypeId idType, QObject *parent) |
| Constructor.
|
|
| ~InformationItemModel () override |
| Overridden destructor.
|
|
QVariant | headerData (int section, Qt::Orientation orientation, int role) const override |
| Overridden from base class to provide column display names.
|
|
int | columnCount (const QModelIndex &parent) const override |
| Overridden from base class to provide the amount of columns.
|
|
int | rowCount (const QModelIndex &parent) const override |
| Overridden from base class to provide the amount of rows.
|
|
QVariant | data (const QModelIndex &index, int role) const override |
| Overridden from base class to provide the data to present.
|
|
Qt::ItemFlags | flags (const QModelIndex &index) const override |
| Overridden from base class to provide flags on an item by index.
|
|
QModelIndex | index (int row, int column, const QModelIndex &parent) const override |
| Overridden from base class.
|
|
QModelIndex | parent (const QModelIndex &child) const override |
| Overridden from base class.
|
|
void | toggleSelection (const QModelIndex &index) |
| Toggle the selection of the item at the passed index.
|
|
bool | isFolder (const QModelIndex &index) |
| Gets the status of a folder type entry of the passed index.
|
|
Gii::IdType | getId (const QModelIndex &index) |
| Gets the information ID from the passed index.
|
|
InformationTypes::IdVector | getSelectedIds () const |
| Toggle the selection of the item at the passed index.
|
|
void | updateList () |
| Updates the list data.
|
|
Item model for viewing Variables in a tree view.
◆ InformationItemModel()
◆ ~InformationItemModel()
sf::InformationItemModel::~InformationItemModel |
( |
| ) |
|
|
override |
◆ columnCount()
int sf::InformationItemModel::columnCount |
( |
const QModelIndex & |
parent | ) |
const |
|
override |
Overridden from base class to provide the amount of columns.
◆ data()
QVariant sf::InformationItemModel::data |
( |
const QModelIndex & |
index, |
|
|
int |
role |
|
) |
| const |
|
override |
Overridden from base class to provide the data to present.
◆ flags()
Qt::ItemFlags sf::InformationItemModel::flags |
( |
const QModelIndex & |
index | ) |
const |
|
override |
Overridden from base class to provide flags on an item by index.
◆ getId()
Gii::IdType sf::InformationItemModel::getId |
( |
const QModelIndex & |
index | ) |
|
Gets the information ID from the passed index.
◆ getSelectedIds()
Toggle the selection of the item at the passed index.
◆ headerData()
QVariant sf::InformationItemModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role |
|
) |
| const |
|
override |
Overridden from base class to provide column display names.
◆ index()
QModelIndex sf::InformationItemModel::index |
( |
int |
row, |
|
|
int |
column, |
|
|
const QModelIndex & |
parent |
|
) |
| const |
|
override |
Overridden from base class.
◆ isFolder()
bool sf::InformationItemModel::isFolder |
( |
const QModelIndex & |
index | ) |
|
Gets the status of a folder type entry of the passed index.
◆ parent()
QModelIndex sf::InformationItemModel::parent |
( |
const QModelIndex & |
child | ) |
const |
|
override |
Overridden from base class.
◆ rowCount()
int sf::InformationItemModel::rowCount |
( |
const QModelIndex & |
parent | ) |
const |
|
override |
Overridden from base class to provide the amount of rows.
◆ toggleSelection()
void sf::InformationItemModel::toggleSelection |
( |
const QModelIndex & |
index | ) |
|
Toggle the selection of the item at the passed index.
◆ updateList()
void sf::InformationItemModel::updateList |
( |
| ) |
|
The documentation for this class was generated from the following file: