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

fix "preview starts always with mainFile and keeps root item size" in a proper way

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • QDS 1.4
    • QDS 1.4
    • QML Live Preview
    • None
    • QDS 2D -Sprint 1

      This brings a problem when changing the current file to another different sized file then the mainFile. It keeps the first initialized size of the root item.

      in qtcreator\src\plugins\qmlpreview\qmlpreviewconnectionmanager.cpp

      there is code:

              if (!m_fileClassifier(changedFile)) {
                  emit restart();
                  return;
              }
      

      maybe doing this for current file change will be the solution

      also, this brings a problem when a component is used in the main.qml file is broken every other component can not be previewed

        For Gerrit Dashboard: QDS-1299
        # Subject Branch Project Status CR V

            tjenssen Tim Jenssen
            tjenssen Tim Jenssen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes