|
Pokered Save Editor 2
Pokemon Red & Blue save file editor - Qt 6 C++/QML
|
Exposes the credits database to QML as a list of sections, each carrying its own entries – so the About screen can render one card per category. More...
#include <creditsmodel.h>
Public Types | |
| enum | CreditRoles { SectionRole = Qt::UserRole + 1 , EntriesRole } |
| The roles QML can bind to (mapped to names in roleNames()). More... | |
Public Member Functions | |
| virtual int | rowCount (const QModelIndex &parent) const override |
| Number of sections. | |
| virtual QVariant | data (const QModelIndex &index, int role) const override |
| Value for a section + role. | |
| virtual QHash< int, QByteArray > | roleNames () const override |
| Role -> QML name map. | |
Exposes the credits database to QML as a list of sections, each carrying its own entries – so the About screen can render one card per category.
Definition at line 42 of file creditsmodel.h.
The roles QML can bind to (mapped to names in roleNames()).
| Enumerator | |
|---|---|
| SectionRole | Category name (the card heading). |
| EntriesRole | QVariantList of this section's entry maps. |
Definition at line 48 of file creditsmodel.h.
|
overridevirtual |
Value for a section + role.
Definition at line 67 of file creditsmodel.cpp.
References EntriesRole, and SectionRole.
|
overridevirtual |
Role -> QML name map.
Definition at line 90 of file creditsmodel.cpp.
References EntriesRole, and SectionRole.
|
overridevirtual |
Number of sections.
Definition at line 59 of file creditsmodel.cpp.