Uploaded image for project: 'Qt Safe Renderer'
  1. Qt Safe Renderer
  2. QSR-1139

Safe QML ID and object names must be identical

    XMLWordPrintable

Details

    • I05c52f2e20faf416155ed650b50442c7a9d98404

    Description

      It seems that safe item id and object names must be identical.

      In case states are defined in the root level, there will be issues if those are not identical.

      And the indicators example has different id and objectname for the safetext.

      If those are different, then unhandled exception is thrown. 

      The exception is originated in <Src>\QtSafeRenderer-1.2.0\src\saferenderer\qsafelayout.cpp

      const LayoutData &QSafeLayout::getLayoutItem(const quint32 id) const
      {
          bool found = false;
          quint32 indexValue = 0U;
          if (m_state == OK) {
              for (quint32 i=0U;i<m_count;i++) {
                  if (m_items[i].id() == id) {
                      indexValue = i;
                      found = true;
                      break;
                  }
              }
          }
      
          if (!found) {
              throw UnknownItem;
          }
          return (m_items[indexValue]);
      }
      

       

      Attachments

        Issue Links

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

          Activity

            People

              tarjasundqvist Tarja Sundqvist
              assaarel Asmo Saarela (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes