This commit is contained in:
BruebachL 2026-11-04 17:07:10 +01:00 • committed by GitHub
commit 2be1caf457
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
36 changed files with 1893 additions and 2 deletions

View file

@ -5,6 +5,8 @@
#include "libcockatrice/utility/playmat_params.h"
#include <QChar>
#include <QDir>
#include <QFileInfo>
#include <QList>
#include <QVariant>
#include <QtGlobal>
@ -246,6 +248,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 +476,8 @@ void InterfaceSettings::setUserListExpandedSections(const QStringList &sections)
{
setValue(sections, "userListExpandedSections");
}
void InterfaceSettings::setTutorialCompleted(bool value)
{
setValue(value, "tutorialCompleted");
}

View file

@ -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 &sections);
void setTutorialCompleted(bool value);
signals:
void useTearOffMenusChanged(bool state);