diff options
| author | stonedDiscord <Tukz@gmx.de> | 2026-02-06 16:09:21 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-06 16:09:21 +0100 |
| commit | 1176bb5fece1e1b2c8c0c1113cfbfe33efb2a673 (patch) | |
| tree | 3047fb118b84c213d519a8f0cba1414b1e62e60d /src/options.cpp | |
| parent | 5dea0406c73704ebf30cf0b8aac671f698e89959 (diff) | |
Double scaling factor (#1104)
* float scaling
* float scaling factor
* aooptions float
* doublespinbox
* header file double
* double it up
* clamp to 0.1
Diffstat (limited to 'src/options.cpp')
| -rw-r--r-- | src/options.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/options.cpp b/src/options.cpp index 0827399a..818ad852 100644 --- a/src/options.cpp +++ b/src/options.cpp @@ -92,17 +92,17 @@ void Options::setTheme(QString value) config.setValue("theme", value); } -int Options::themeScalingFactor() const +double Options::themeScalingFactor() const { - int value = config.value("theme_scaling_factor", "1").toInt(); - if (value <= 0) + double value = config.value("theme_scaling_factor", "1").toDouble(); + if (value < 0.1) { - value = 1; + value = 0.1; } return value; } -void Options::setThemeScalingFactor(int value) +void Options::setThemeScalingFactor(double value) { config.setValue("theme_scaling_factor", value); } |
