get/set implemented

This commit is contained in:
ykeara
2019-04-10 20:09:39 -05:00
parent c7483861bc
commit d866725724
3 changed files with 123 additions and 59 deletions
+38
View File
@@ -85,4 +85,42 @@ namespace advsettings
void VideoTabController::saveVideoConfig() {
}
float VideoTabController::brightnessValue() const
{
return m_brightnessValue;
}
bool VideoTabController::brightnessEnabled() const
{
return m_brightnessEnabled;
}
void VideoTabController::setBrightnessEnabled(bool value, bool notify)
{
//TODO mutex?
//std::lock_guard<std::recursive_mutex> lock(eventLoopMutex);
if (value != m_brightnessEnabled)
{
m_brightnessEnabled = value;
if (notify)
{
emit brightnessEnabledChanged(value);
}
}
}
void VideoTabController::setBrightnessvalue(float value, bool notify)
{
//TODO mutex?
//std::lock_guard<std::recursive_mutex> lock(eventLoopMutex);
if (value != m_brightnessValue)
{
m_brightnessValue = value;
if (notify)
{
emit brightnessValueChanged(value);
}
}
}
}