ff7tk  1.2.0.13
Work with Final Fantasy 7 game data
Signals | Public Member Functions | Properties | List of all members
FF7ItemModel Class Reference

#include <FF7ItemModel.h>

Inheritance diagram for FF7ItemModel:
Inheritance graph
[legend]
Collaboration diagram for FF7ItemModel:
Collaboration graph
[legend]

Signals

void itemsChanged (QList< quint16 >)
 

Public Member Functions

 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 ()
 

Properties

QList< quint16 > items
 

Constructor & Destructor Documentation

◆ FF7ItemModel()

FF7ItemModel::FF7ItemModel ( QObject *  parent = nullptr,
const QList< quint16 > &  initialItems = QList<quint16>(320, FF7Item::EmptyItemData) 
)
explicit

Member Function Documentation

◆ 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

Property Documentation

◆ items

QList< quint16 > FF7ItemModel::items
readwrite

The documentation for this class was generated from the following files: