|
Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
|
Type list model – the elemental types for type pickers. More...
#include <typesmodel.h>
Public Types | |
| enum | PokemonStarterRoles { IndRole = Qt::UserRole + 1 , NameRole } |
| Columns (mapped in roleNames()). More... | |
Public Member Functions | |
| virtual int | rowCount (const QModelIndex &parent) const override |
| Row count. | |
| virtual QVariant | data (const QModelIndex &index, int role) const override |
| Row+role value. | |
| virtual QHash< int, QByteArray > | roleNames () const override |
| Role -> QML name. | |
| int | valToIndex (int val) |
Row index for type value val. | |
Type list model – the elemental types for type pickers.
Plain list model (see CreditsModel) over the types DB; valToIndex() maps a type value to its row. Exposed as brg.typesModel.
Definition at line 28 of file typesmodel.h.
Columns (mapped in roleNames()).
| Enumerator | |
|---|---|
| IndRole | |
| NameRole | |
Definition at line 34 of file typesmodel.h.
|
overridevirtual |
Row+role value.
Definition at line 34 of file typesmodel.cpp.
References TypesDB::getStore(), IndRole, TypesDB::inst(), and NameRole.
|
overridevirtual |
|
overridevirtual |
Row count.
Definition at line 25 of file typesmodel.cpp.
References TypesDB::getStore(), and TypesDB::inst().
| int TypesModel::valToIndex | ( | int | val | ) |
Row index for type value val.
Definition at line 85 of file typesmodel.cpp.
References TypesDB::getStore(), and TypesDB::inst().