mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
Ref T730, audio settings use 0..100 values, check the values
This commit is contained in:
committed by
Mat Sutcliffe
parent
16a1f1a8a9
commit
5a19bbdb5e
@@ -62,9 +62,23 @@ namespace BlackMisc
|
||||
else if (m_notificationVolume > 100) { m_notificationVolume = 100; }
|
||||
}
|
||||
|
||||
void CSettings::setOutVolume(int volume)
|
||||
{
|
||||
if (volume > OutMax) { volume = OutMax; }
|
||||
else if (volume < OutMin) { volume = OutMin; }
|
||||
m_outVolume = volume;
|
||||
}
|
||||
|
||||
void CSettings::setInVolume(int volume)
|
||||
{
|
||||
if (volume > InMax) { volume = InMax; }
|
||||
else if (volume < InMin) { volume = InMin; }
|
||||
m_inVolume = volume;
|
||||
}
|
||||
|
||||
QString CSettings::convertToQString(bool i18n) const
|
||||
{
|
||||
Q_UNUSED(i18n);
|
||||
Q_UNUSED(i18n)
|
||||
return u"Notification flags: " % CNotificationSounds::toString(this->getNotification()) %
|
||||
u" volume: " % QString::number(m_notificationVolume);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user