Initial import of grouped playlists - NOT FINISHED

This commit is contained in:
craig
2012-03-16 22:33:34 +00:00
committed by craig
parent 51b950ca2f
commit c7df4c5160
32 changed files with 1532 additions and 1011 deletions

View File

@@ -324,7 +324,7 @@ int Settings::devicesView()
int Settings::version()
{
if (-1==ver) {
QStringList parts=GET_STRING("version", QLatin1String("0.0.0")).split('.');
QStringList parts=GET_STRING("version", QLatin1String(PACKAGE_VERSION)).split('.');
if (3==parts.size()) {
ver=CANTATA_MAKE_VERSION(parts.at(0).toInt(), parts.at(1).toInt(), parts.at(2).toInt());
} else {
@@ -381,6 +381,11 @@ bool Settings::playQueueScroll()
return GET_BOOL("playQueueScroll", true);
}
bool Settings::playListsStartClosed()
{
return GET_BOOL("playListsStartClosed", true);
}
void Settings::saveConnectionHost(const QString &v)
{
SET_VALUE("connectionHost", v);
@@ -625,6 +630,11 @@ void Settings::savePlayQueueScroll(bool v)
SET_VALUE("playQueueScroll", v);
}
void Settings::savePlayListsStartClosed(bool v)
{
SET_VALUE("playListsStartClosed", v);
}
void Settings::save(bool force)
{
if (force) {