mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
sound themes
This commit is contained in:
parent
226a8cc017
commit
85aa866e02
22 changed files with 132 additions and 72 deletions
|
|
@ -137,7 +137,6 @@ SettingsCache::SettingsCache()
|
|||
setDeckPath(qApp->applicationDirPath() + "data/decks");
|
||||
setReplaysPath(qApp->applicationDirPath() +"data/replays");
|
||||
setPicsPath(qApp->applicationDirPath() + "data/pics");
|
||||
setSoundPath(qApp->applicationDirPath() +"data/sounds");
|
||||
#endif
|
||||
|
||||
notifyAboutUpdates = settings->value("personal/updatenotification", true).toBool();
|
||||
|
|
@ -198,7 +197,7 @@ SettingsCache::SettingsCache()
|
|||
zoneViewPileView = settings->value("zoneview/pileview", true).toBool();
|
||||
|
||||
soundEnabled = settings->value("sound/enabled", false).toBool();
|
||||
soundPath = settings->value("sound/path").toString();
|
||||
soundThemeName = settings->value("sound/theme").toString();
|
||||
|
||||
priceTagFeature = settings->value("deckeditor/pricetags", false).toBool();
|
||||
priceTagSource = settings->value("deckeditor/pricetagsource", 0).toInt();
|
||||
|
|
@ -482,11 +481,11 @@ void SettingsCache::setSoundEnabled(int _soundEnabled)
|
|||
emit soundEnabledChanged();
|
||||
}
|
||||
|
||||
void SettingsCache::setSoundPath(const QString &_soundPath)
|
||||
void SettingsCache::setSoundThemeName(const QString &_soundThemeName)
|
||||
{
|
||||
soundPath = _soundPath;
|
||||
settings->setValue("sound/path", soundPath);
|
||||
emit soundPathChanged();
|
||||
soundThemeName = _soundThemeName;
|
||||
settings->setValue("sound/theme", soundThemeName);
|
||||
emit soundThemeChanged();
|
||||
}
|
||||
|
||||
void SettingsCache::setPriceTagFeature(int _priceTagFeature)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue