mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-10-04 17:41:42 +02:00
Merge branch 'master' into aclwidget
Conflicts: src/libtomahawk/utils/TomahawkUtilsGui.cpp src/libtomahawk/utils/TomahawkUtilsGui.h
This commit is contained in:
@@ -158,7 +158,6 @@ TomahawkSettings::doInitialSetup()
|
||||
// by default we add a local network resolver
|
||||
addAccount( "sipzeroconf_autocreated" );
|
||||
|
||||
|
||||
createLastFmAccount();
|
||||
createSpotifyAccount();
|
||||
}
|
||||
@@ -192,6 +191,7 @@ TomahawkSettings::createSpotifyAccount()
|
||||
setValue( "types", QStringList() << "ResolverType" );
|
||||
setValue( "credentials", QVariantHash() );
|
||||
setValue( "configuration", QVariantHash() );
|
||||
setValue( "accountfriendlyname", "Spotify" );
|
||||
endGroup();
|
||||
|
||||
QStringList allAccounts = value( "accounts/allaccounts" ).toStringList();
|
||||
@@ -484,6 +484,7 @@ TomahawkSettings::doUpgrade( int oldVersion, int newVersion )
|
||||
setValue( "enabled", enabled );
|
||||
setValue( "autoconnect", autoconnect );
|
||||
setValue( "types", QStringList() << "ResolverType" );
|
||||
setValue( "accountfriendlyname", "Spotify" );
|
||||
setValue( "configuration", configuration );
|
||||
endGroup();
|
||||
|
||||
@@ -557,10 +558,10 @@ TomahawkSettings::doUpgrade( int oldVersion, int newVersion )
|
||||
}
|
||||
|
||||
endGroup();
|
||||
|
||||
// setPlaylistUpdaters( updaters );
|
||||
|
||||
remove( "playlistupdaters" );
|
||||
|
||||
setValue( "playlists/updaters", QVariant::fromValue< SerializedUpdaters >( updaters ) );
|
||||
|
||||
}
|
||||
else if ( oldVersion == 11 )
|
||||
{
|
||||
@@ -712,6 +713,20 @@ TomahawkSettings::setCrashReporterEnabled( bool enable )
|
||||
}
|
||||
|
||||
|
||||
unsigned int
|
||||
TomahawkSettings::volume() const
|
||||
{
|
||||
return value( "audio/volume", 75 ).toUInt();
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
TomahawkSettings::setVolume( unsigned int volume )
|
||||
{
|
||||
setValue( "audio/volume", volume );
|
||||
}
|
||||
|
||||
|
||||
QString
|
||||
TomahawkSettings::proxyHost() const
|
||||
{
|
||||
|
Reference in New Issue
Block a user