Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-32473

generate property getter fails with local enum.

    XMLWordPrintable

Details

    • Linux/Wayland
    • 92b0256bd (16.0)

    Description

      When one creates a class like:

      class Foo {
      public:
      enum Bar

      { something }

      ;

      private:
      Bar m_bar;
      };

      For this Qt will gladly generate a getter/setter and q_property when you position the cursor on m_bar.

      What happens:

      I get a method declaration in the cpp file like:

      Bar Foo::bar() const {

      This does not compile. The enum needs to be fully specified.

      What I expected:
      that the cpp file gains a declaration like this, when needed:
      Foo::Bar Foo::bar() const {

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            tomz Tom Zander
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes