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

Figma Variants: States get duplicated when re-importing/merging *.qtbridge file

XMLWordPrintable

    • f70059da7f (qt-creator/tqtc-plugin-qtquickdesigner/qds/dev)
    • QDS Berlin - 2022 Week 41/42, QDS Berlin - 2022 Week 43/44, QDS Berlin - 2022 Week 45/46, QDS Berlin - 2022 Week 47/48

      Steps to reproduce

      1. From Qt Design Studio's Example page, download and open the "Figma Variants" example
      2. Without changing anything, re-import FigmaVariants.qtbridge  (found at C:\Users\<USERNAME>\Documents\QtDesignStudio\FigmaVariants\FigmaVariants.qtbridge on Windows)

       

      Outcome

      The import log contains the following warnings

      Reading metadata archive
      C:/Users/dev/Documents/QtDesignStudio/FigmaVariants/FigmaVariants.qtbridge
      Conflicting component name State_active is replaced with State_active_1. Update the respective QML id to avoid this warning.
      Conflicting component name State_warning is replaced with State_warning_1. Update the respective QML id to avoid this warning.
      Conflicting component name State_active is replaced with State_active_2. Update the respective QML id to avoid this warning.
      Merging QML
      Cannot locate the node  in the imported QML file
      C:/Users/dev/Documents/QtDesignStudio/FigmaVariants/FigmaVariants/content/FigmaVariants/ViewPanel.ui.qml
      Cannot locate the node  in the imported QML file
      C:/Users/dev/Documents/QtDesignStudio/FigmaVariants/FigmaVariants/content/FigmaVariants/ViewPanel.ui.qml
      Cannot locate the node  in the imported QML file
      C:/Users/dev/Documents/QtDesignStudio/FigmaVariants/FigmaVariants/content/FigmaVariants/ViewPanel.ui.qml
      Cannot locate the node  in the imported QML file
      C:/Users/dev/Documents/QtDesignStudio/FigmaVariants/FigmaVariants/content/FigmaVariants/ViewPanel.ui.qml
      Cannot locate the node  in the imported QML file
      C:/Users/dev/Documents/QtDesignStudio/FigmaVariants/FigmaVariants/content/FigmaVariants/ViewPanel.ui.qml
      Cannot locate the node  in the imported QML file
      C:/Users/dev/Documents/QtDesignStudio/FigmaVariants/FigmaVariants/content/FigmaVariants/ViewPanel.ui.qml
      Cannot locate the node  in the imported QML file
      C:/Users/dev/Documents/QtDesignStudio/FigmaVariants/FigmaVariants/content/FigmaVariants/ViewPanel.ui.qml
      Merging dynamic property (binding): pushButton buttonLabelText
      ...

       

      Furthermore, ViewPanel.ui.qml now contains duplicated states:

      states: [
          State {
              name: "state_state_active"
          },
          State {
              name: "state_state_normal"
              extend: "state_state_active"
      
              PropertyChanges {
                  target: panelBottomBar
                  border.color: "#767676"
              }
      
              PropertyChanges {
                  target: panelBackground
                  border.color: "#767676"
              }
      
              PropertyChanges {
                  target: panelTopBar
                  border.color: "#767676"
              }
          },
          State {
              name: "state_state_active"
          },
          State {
              name: "state_state_normal"
              extend: "state_state_active"
              PropertyChanges {
                  target: panelBackground
                  border.color: "#767676"
              }
      
              PropertyChanges {
                  target: panelTopBar
                  border.color: "#767676"
              }
      
              PropertyChanges {
                  target: panelBottomBar
                  border.color: "#767676"
              }
          }
      ]
      

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

            vikas Vikas Pachdha
            skoh-qt Sze Howe Koh
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes