• Settings
  • Settings Class

    class ScreenPlay::Settings

    Global settings class for reading and writing settings. More...

    Header: #include <Settings>

    Public Functions

    bool retranslateUI()
    void setupWidgetAndWindowPaths()
    void writeJsonFileFromResource(const int &filename)

    Detailed Description

    Used for:

    Currently we save the regular settings (not the setup of the wallpaper and widgets) in two different locations. This can change in the future!

    Member Function Documentation

    bool Settings::retranslateUI()

    Check for supported langauges. If we use a langauge that not uses latin characters, we change the font. For example this happens for korean user. We ship google Noto Sans CJK KR Regular for this..

    void Settings::setupWidgetAndWindowPaths()

    To have a better developer experience we check if we use a debug version. Then we assume That the paths are the default QtCreator paths and set the widgets and wallpaper executable paths accordingly.

    void Settings::writeJsonFileFromResource(const int &filename)

    Writes the default JsonFile from the resources and the given filename. Currently we have two default json files: