mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-10-04 17:41:42 +02:00
* Added volume / setVolume methods to TomahawkSettings.
This commit is contained in:
@@ -158,7 +158,6 @@ TomahawkSettings::doInitialSetup()
|
||||
// by default we add a local network resolver
|
||||
addAccount( "sipzeroconf_autocreated" );
|
||||
|
||||
|
||||
createLastFmAccount();
|
||||
createSpotifyAccount();
|
||||
}
|
||||
@@ -712,6 +711,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