Uploaded image for project: 'Qt Design Studio'
  1. Qt Design Studio
  2. QDS-15040

Improve code generation mechanism

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • QDS 4.7.0
    • Effect Composer
    • None

    Description

      Description:

      Changing generated shade or QML code of effects seems to be very hard because of in-lining the Shader/QML code inside C++ implementation. This can be improved by using a light-weight template engine.

      Impact/Value:

      • Segregates code generation and logic/model
      • Helps with maintainability of current templates
      • Helps with maintainability of the composer code itself
      • Adding new type of effects will be a lot easier.

      Suggested Solution:

      1. Add dependency to a light-weight template engine like Inja
      2. Move code templates to external files/resources
      3. Feed the template with the template and the model it should use to generate the code.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              mabadri Mahmoud Badri
              soarmin Soheil Armin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes