aboutsummaryrefslogtreecommitdiff
path: root/launcher/settings/PassthroughSetting.h
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-08-02 18:35:35 +0200
committerSefa Eyeoglu <contact@scrumplex.net>2023-08-02 18:35:35 +0200
commit1d468ac35ad88d8c77cc83f25e3704d9bd7df01b (patch)
tree8644b1574c947a1a87c5c7b2567f746cfe17882f /launcher/settings/PassthroughSetting.h
parentce2ca1381519a2e261d7f76dffa874d559d979c2 (diff)
downloadPrismLauncher-1d468ac35ad88d8c77cc83f25e3704d9bd7df01b.tar.gz
PrismLauncher-1d468ac35ad88d8c77cc83f25e3704d9bd7df01b.tar.bz2
PrismLauncher-1d468ac35ad88d8c77cc83f25e3704d9bd7df01b.zip
chore: reformat
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'launcher/settings/PassthroughSetting.h')
-rw-r--r--launcher/settings/PassthroughSetting.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/launcher/settings/PassthroughSetting.h b/launcher/settings/PassthroughSetting.h
index 22008f83..c776ca95 100644
--- a/launcher/settings/PassthroughSetting.h
+++ b/launcher/settings/PassthroughSetting.h
@@ -25,21 +25,20 @@
* If 'gate' evaluates to true, the override stores and returns data
* If 'gate' evaluates to false, the original does,
*/
-class PassthroughSetting : public Setting
-{
+class PassthroughSetting : public Setting {
Q_OBJECT
-public:
+ public:
explicit PassthroughSetting(std::shared_ptr<Setting> overriden, std::shared_ptr<Setting> gate);
virtual QVariant defValue() const;
virtual QVariant get() const;
- virtual void set (QVariant value);
+ virtual void set(QVariant value);
virtual void reset();
-private:
+ private:
bool isOverriding() const;
-protected:
+ protected:
std::shared_ptr<Setting> m_other;
std::shared_ptr<Setting> m_gate;
};