mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-09 11:33:25 -08:00
Various fixes
Took 14 minutes
This commit is contained in:
parent
4fca8e2a3a
commit
0909d356e0
15 changed files with 90 additions and 78 deletions
|
|
@ -246,6 +246,11 @@ QStringList InterfaceSettings::getUserListExpandedSections() const
|
|||
.toStringList();
|
||||
}
|
||||
|
||||
bool InterfaceSettings::getTutorialCompleted() const
|
||||
{
|
||||
return getValue("tutorialCompleted", QString(), QString(), false).toBool();
|
||||
}
|
||||
|
||||
void InterfaceSettings::setUseTearOffMenus(bool _useTearOffMenus)
|
||||
{
|
||||
setValue(_useTearOffMenus, "useTearOffMenus");
|
||||
|
|
@ -469,3 +474,8 @@ void InterfaceSettings::setUserListExpandedSections(const QStringList §ions)
|
|||
{
|
||||
setValue(sections, "userListExpandedSections");
|
||||
}
|
||||
|
||||
void InterfaceSettings::setTutorialCompleted(bool value)
|
||||
{
|
||||
setValue(value, "tutorialCompleted");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -57,6 +57,7 @@ public:
|
|||
[[nodiscard]] bool getLifeCounterAnimationsEnabled() const override;
|
||||
[[nodiscard]] bool getBattlefieldFlashEnabled() const override;
|
||||
[[nodiscard]] QStringList getUserListExpandedSections() const override;
|
||||
[[nodiscard]] bool getTutorialCompleted() const;
|
||||
|
||||
void setUseTearOffMenus(bool _useTearOffMenus);
|
||||
void setCardViewInitialRowsMax(int _cardViewInitialRowsMax);
|
||||
|
|
@ -96,6 +97,7 @@ public:
|
|||
void setLifeCounterAnimationsEnabled(bool _lifeCounterAnimationsEnabled);
|
||||
void setBattlefieldFlashEnabled(bool _battlefieldFlashEnabled);
|
||||
void setUserListExpandedSections(const QStringList §ions);
|
||||
void setTutorialCompleted(bool value);
|
||||
|
||||
signals:
|
||||
void useTearOffMenusChanged(bool state);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue