MCPcopy Create free account
hub / github.com/IENT/YUView / initializeDefaults

Method initializeDefaults

YUViewLib/src/ui/SettingsDialog.cpp:166–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166void 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
178unsigned int SettingsDialog::getCacheSizeInMB() const
179{

Callers

nothing calls this directly

Calls 1

containsMethod · 0.80

Tested by

no test coverage detected