• Icon: Technical task Technical task
    • Resolution: Fixed
    • Icon: P3: Somewhat important P3: Somewhat important
    • 6.7.0
    • QML: Compiler
    • cebb3a732041d4254e8fd1a0b41e19f027351e92

      Currently, only generate_As() does QMetaObject::cast() and the special conversion of matching type to either the type itself or undefined.

      While the latter is indeed quite specific to the "as" operation, using QMetaObject::cast() could be done to downcast any QObject-based type in any conversion.

      Furthermore, if we can statically prove that the "as" operation doesn't do anything because the source type already inherits the target type, we don't have to generate any code at all.

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

            ulherman Ulf Hermann
            ulherman Ulf Hermann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes