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

system color picker changing color on cancel

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • QDS 2.2.0
    • QDS 2.2 Beta1
    • 2D View
    • None

    Description

      When double-clicking on a Rectangle in the form editor you launch a system color picker, if you click cancel full white is assigned to the Rectangle instead of canceling. This only happens when the Rectangle color property has a binding.

      void ColorTool::colorDialogRejected()
      {
          if (m_formEditorItem) {
              if (m_oldColor.isValid())
                  m_formEditorItem->qmlItemNode().setVariantProperty("color", m_oldColor);
              else
                  m_formEditorItem->qmlItemNode().removeProperty("color");
          }
          view()->changeToSelectionTool();
      }
      

      Attachments

        Activity

          People

            henning Henning Gr√ľndl
            brook_cronin_qt Brook Cronin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: