RhythmGame 1.4.3
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | List of all members
Lr2SelectDifficultyModel Class Reference

#include <Lr2SelectDetailState.h>

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

Public Types

enum  Role { DifficultyRole = Qt::UserRole + 1 , CountRole , PlayLevelRole , LampRole }
 

Public Member Functions

 Lr2SelectDifficultyModel (QObject *parent=nullptr)
 
int rowCount (const QModelIndex &parent={}) const override
 
QVariant data (const QModelIndex &index, int role) const override
 
QHash< int, QByteArray > roleNames () const override
 
Q_INVOKABLE int countForDifficulty (int difficulty) const
 
Q_INVOKABLE int playLevelForDifficulty (int difficulty) const
 
Q_INVOKABLE int lampForDifficulty (int difficulty) const
 
Q_INVOKABLE QVariantList optionIdsForKeymode (int keymode, bool includeLamps) const
 
bool setRows (const QVariantList &counts, const QVariantList &levels, const QVariantList &lamps, int selectedDifficulty=0, int selectedLamp=0)
 

Member Enumeration Documentation

◆ Role

Enumerator
DifficultyRole 
CountRole 
PlayLevelRole 
LampRole 

Constructor & Destructor Documentation

◆ Lr2SelectDifficultyModel()

Lr2SelectDifficultyModel::Lr2SelectDifficultyModel ( QObject *  parent = nullptr)
explicit

Member Function Documentation

◆ countForDifficulty()

int Lr2SelectDifficultyModel::countForDifficulty ( int  difficulty) const

◆ data()

QVariant Lr2SelectDifficultyModel::data ( const QModelIndex &  index,
int  role 
) const
override

◆ lampForDifficulty()

int Lr2SelectDifficultyModel::lampForDifficulty ( int  difficulty) const

◆ optionIdsForKeymode()

QVariantList Lr2SelectDifficultyModel::optionIdsForKeymode ( int  keymode,
bool  includeLamps 
) const

◆ playLevelForDifficulty()

int Lr2SelectDifficultyModel::playLevelForDifficulty ( int  difficulty) const

◆ roleNames()

QHash< int, QByteArray > Lr2SelectDifficultyModel::roleNames ( ) const
override

◆ rowCount()

int Lr2SelectDifficultyModel::rowCount ( const QModelIndex &  parent = {}) const
override

◆ setRows()

bool Lr2SelectDifficultyModel::setRows ( const QVariantList &  counts,
const QVariantList &  levels,
const QVariantList &  lamps,
int  selectedDifficulty = 0,
int  selectedLamp = 0 
)

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