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

Improve code generation mechanism

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:

                There are no open Gerrit changes