summaryrefslogtreecommitdiffstats
path: root/api/logic/settings/OverrideSetting.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'api/logic/settings/OverrideSetting.cpp')
-rw-r--r--api/logic/settings/OverrideSetting.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/api/logic/settings/OverrideSetting.cpp b/api/logic/settings/OverrideSetting.cpp
index a3d48e03..e0e407bd 100644
--- a/api/logic/settings/OverrideSetting.cpp
+++ b/api/logic/settings/OverrideSetting.cpp
@@ -16,39 +16,39 @@
#include "OverrideSetting.h"
OverrideSetting::OverrideSetting(std::shared_ptr<Setting> other, std::shared_ptr<Setting> gate)
- : Setting(other->configKeys(), QVariant())
+ : Setting(other->configKeys(), QVariant())
{
- Q_ASSERT(other);
- Q_ASSERT(gate);
- m_other = other;
- m_gate = gate;
+ Q_ASSERT(other);
+ Q_ASSERT(gate);
+ m_other = other;
+ m_gate = gate;
}
bool OverrideSetting::isOverriding() const
{
- return m_gate->get().toBool();
+ return m_gate->get().toBool();
}
QVariant OverrideSetting::defValue() const
{
- return m_other->get();
+ return m_other->get();
}
QVariant OverrideSetting::get() const
{
- if(isOverriding())
- {
- return Setting::get();
- }
- return m_other->get();
+ if(isOverriding())
+ {
+ return Setting::get();
+ }
+ return m_other->get();
}
void OverrideSetting::reset()
{
- Setting::reset();
+ Setting::reset();
}
void OverrideSetting::set(QVariant value)
{
- Setting::set(value);
+ Setting::set(value);
}