| 164 | } |
| 165 | |
| 166 | void SettingsDialog::initializeDefaults() |
| 167 | { |
| 168 | // All default values are defined here and will be initialized at every startup. |
| 169 | QSettings settings; |
| 170 | if (!settings.contains("View/BackgroundColor")) |
| 171 | settings.setValue("View/BackgroundColor", QColor(128, 128, 128)); |
| 172 | if (!settings.contains("View/GridColor")) |
| 173 | settings.setValue("View/GridColor", QColor(0, 0, 0)); |
| 174 | if (!settings.contains("Plot/BackgroundColor")) |
| 175 | settings.setValue("Plot/BackgroundColor", QColor(255, 255, 255)); |
| 176 | } |
| 177 | |
| 178 | unsigned int SettingsDialog::getCacheSizeInMB() const |
| 179 | { |