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

Fix that we use indirect imports instead of direct imports in some cases

XMLWordPrintable

    • Icon: User Story User Story
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • QDS 4.8.0
    • None
    • Project Storage
    • None
    • QDS Berlin - 2025 Week 37/38, QDS Berlin - 2025 Week 39/40
    • 111d62b27 (qds/dev), a460a7019 (qds/dev)

      Fix that we use indirect imports instead of direct imports in some cases.

      In QString RewriterView::moveToComponent(const ModelNode &modelNode)

      and CreateSceneCommand NodeInstanceView::createCreateSceneCommand() (createQualifiedTypeName)

      We use indirect imports.

      This means e.g. if import QtQuick.Controls is used we generate the import and full qualified type QtQuick.Controls.Basic instead.

      In both cases we have to compare the indirect module names with the direct imports from theĀ  document and use the direct document import instead (e.g. QtQuick.Controls instead of QtQuick.Controls.Basic).

      Using QtQuick.Controls.Basic instead of QtQuick.Controls breaks style switching in the puppet and in move to componment we gennerateĀ  QtQuick.Controls.Basic instead of QtQuick.Controls.

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

            bubke Marco Bubke
            thohartm Thomas Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes