MockSettings
In-memory Settings implementation that doesn't persist to disk.
| Inherits | Settings |
| Group | catalog |
Declared in src/libs/libcatalog/catalog/MockSettings.hpp.
Detailed description
MockSettings provides a Settings subclass that stores all values in memory instead of persisting to disk. This is useful for: - Unit testing widgets that need Settings - Screenshot capture where persistence is not needed - Isolated testing without affecting real settings
All getters return default values unless explicitly set. A caller that holds a Settings pointer reaches the base class, whose accessors are not virtual: its QSettings has a file of its own in a temporary folder of the process, so nothing reaches the user's settings.
See also Settings, ActivityMockRuntime.