• ProjectSettingsListModel
  • ProjectSettingsListModel Class

    class ScreenPlay::ProjectSettingsListModel

    ProjectSettingsListModel used for the dynamic loading of the properties json object inside a project.json. More...

    Header: #include <ProjectSettingsListModel>

    Detailed Description

    The loaded properties are allowed to have one level of nesting to simulate headlines:

    "properties": {
        "Attractor": {
            "attStrength": {
                "from": 0,
                "stepSize": 100,
                "to": 100000,
                "type": "slider",
                "value": 8000000
            }
        },
        "Emitter": {
            "emitRate": {
                "from": 0,
                "stepSize": 1,
                "to": 2500,
                "type": "slider",
                "value": 25
            }
        }
    }

    In this example the Attractor and Emitter would be a headline. In the UI we then displays it for the user to modify. Otherwhise it is a regular QAbstractListModel based list model.