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

Wrong type of author in the code example of grouped properties

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.6.0 Alpha
    • 5.5.0
    • Documentation
    • None
    • 9ee31a6ae852eb347951e371958dd435409c9941

    Description

      I think there is a small mistake in the code example of grouped properties:

      http://doc.qt.io/qt-5/qtqml-cppintegration-exposecppattributes.html#grouped-properties

      -----------------------------------------------
      Message *author() const

      { return m_author; }
      private:
      Message *m_author;
      };
      ------------------------------------------------

      As written in the comment above this example the author property should be as type MessageAuthor ... so it should be:

      -----------------------------------------------
      MessageAuthor *author() const { return m_author; }

      private:
      MessageAuthor *m_author;
      };
      ------------------------------------------------

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            doitux Felix Hammer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes