Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-101940

Rework QQmlJSScope::canAssign()

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P3: Somewhat important
    • Some future release
    • None
    • QML: Tooling
    • None

    Description

      QQmlJSScope::canAssign() acts as a type matching function between a property type and an object type. It seems to have issues at the moment:

      1. If the usage stays as it is, rather consider putting this function into QQmlJSMetaProperty
      2. String conversions must be handled eventually (currently they are ignored completely)
      3. The QQmlComponent check within the function feels wrong. Additionally, we should acknowledge implicit component types (types wrapped in QQmlComponent) when checking whether the types match

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            agolubev Andrei Golubev
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes