mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-15 19:47:46 -07:00
[SettingsManager] Make setting getters const (#6748)
* [SettingsManager] Make setting getters const * remove hashGameType from header
This commit is contained in:
parent
d8e3807ec5
commit
34a5b8b9ce
22 changed files with 124 additions and 126 deletions
|
|
@ -11,22 +11,22 @@ DebugSettings::DebugSettings(const QString &settingPath, QObject *parent)
|
|||
}
|
||||
}
|
||||
|
||||
bool DebugSettings::getShowCardId()
|
||||
bool DebugSettings::getShowCardId() const
|
||||
{
|
||||
return getValue("showCardId").toBool();
|
||||
}
|
||||
|
||||
bool DebugSettings::getLocalGameOnStartup()
|
||||
bool DebugSettings::getLocalGameOnStartup() const
|
||||
{
|
||||
return getValue("onStartup", "localgame").toBool();
|
||||
}
|
||||
|
||||
int DebugSettings::getLocalGamePlayerCount()
|
||||
int DebugSettings::getLocalGamePlayerCount() const
|
||||
{
|
||||
return getValue("playerCount", "localgame").toInt();
|
||||
}
|
||||
|
||||
QString DebugSettings::getDeckPathForPlayer(const QString &playerName)
|
||||
QString DebugSettings::getDeckPathForPlayer(const QString &playerName) const
|
||||
{
|
||||
return getValue(playerName, "localgame", "deck").toString();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue