Cute Chess  0.1
Public Slots | Public Member Functions | List of all members
GameRepetitionSpinBox Class Reference
Inheritance diagram for GameRepetitionSpinBox:
QSpinBox

Public Slots

void setGamesPerEncounter (int gamesPerEncounter)
 
void setRounds (int rounds)
 
void setTournamentType (const QString &tournamentType)
 

Public Member Functions

virtual void fixup (QString &input) const override
 
 GameRepetitionSpinBox (QWidget *parent=nullptr)
 
virtual void stepBy (int steps) override
 
virtual QValidator::State validate (QString &input, int &pos) const override
 

Constructor & Destructor Documentation

◆ GameRepetitionSpinBox()

GameRepetitionSpinBox::GameRepetitionSpinBox ( QWidget parent = nullptr)
explicit

Creates a new GameRepetitionSpinBox with parent parent.

Member Function Documentation

◆ setGamesPerEncounter

void GameRepetitionSpinBox::setGamesPerEncounter ( int  gamesPerEncounter)
slot

Adjusts the step value and maximum value based on gamesPerEncounter.

If the spin box's current value is no longer acceptable, the closest acceptable value is set.

◆ setRounds

void GameRepetitionSpinBox::setRounds ( int  rounds)
slot

Adjusts the step value and maximum value based on rounds.

If the spin box's current value is no longer acceptable, the closest acceptable value is set.

◆ setTournamentType

void GameRepetitionSpinBox::setTournamentType ( const QString tournamentType)
slot

Adjusts the current value based on tournamentType.

If the spin box's current value is no longer acceptable, the closest acceptable value is set.


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