#include <FF7ItemModel.h>
|
| FF7ItemModel (QObject *parent=nullptr, const QList< quint16 > &initialItems=QList< quint16 >(320, FF7Item::EmptyItemData)) |
|
int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
|
int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
|
QVariant | data (const QModelIndex &index=QModelIndex(), int role=Qt::DisplayRole) const override |
|
bool | setData (const QModelIndex &index=QModelIndex(), const QVariant &value=QVariant(), int role=Qt::EditRole) override |
|
Qt::ItemFlags | flags (const QModelIndex &index=QModelIndex()) const override |
|
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const override |
|
bool | setItems (const QList< quint16 > &newItems={}) |
|
bool | resetItems (const QList< quint16 > &newItems={}) |
|
QList< quint16 > | allItems () |
|
◆ FF7ItemModel()
FF7ItemModel::FF7ItemModel |
( |
QObject * |
parent = nullptr , |
|
|
const QList< quint16 > & |
initialItems = QList<quint16>(320, FF7Item::EmptyItemData) |
|
) |
| |
|
explicit |
◆ allItems()
QList< quint16 > FF7ItemModel::allItems |
( |
| ) |
|
◆ columnCount()
int FF7ItemModel::columnCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
◆ data()
QVariant FF7ItemModel::data |
( |
const QModelIndex & |
index = QModelIndex() , |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
◆ flags()
Qt::ItemFlags FF7ItemModel::flags |
( |
const QModelIndex & |
index = QModelIndex() | ) |
const |
|
override |
◆ headerData()
QVariant FF7ItemModel::headerData |
( |
int |
section, |
|
|
Qt::Orientation |
orientation, |
|
|
int |
role = Qt::DisplayRole |
|
) |
| const |
|
override |
◆ itemsChanged
void FF7ItemModel::itemsChanged |
( |
QList< quint16 > |
| ) |
|
|
signal |
◆ resetItems()
bool FF7ItemModel::resetItems |
( |
const QList< quint16 > & |
newItems = {} | ) |
|
Resets Initial Items Does not Emit Items Changed Returns True When successful
◆ rowCount()
int FF7ItemModel::rowCount |
( |
const QModelIndex & |
parent = QModelIndex() | ) |
const |
|
override |
◆ setData()
bool FF7ItemModel::setData |
( |
const QModelIndex & |
index = QModelIndex() , |
|
|
const QVariant & |
value = QVariant() , |
|
|
int |
role = Qt::EditRole |
|
) |
| |
|
override |
◆ setItems()
bool FF7ItemModel::setItems |
( |
const QList< quint16 > & |
newItems = {} | ) |
|
Set Items Emits Items Changed Returns True (and Emits) if successful
◆ items
QList< quint16 > FF7ItemModel::items |
|
readwrite |
The documentation for this class was generated from the following files: