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

Allow create getter/setter when member variable has a braced initializer

    XMLWordPrintable

Details

    • All

    Description

      If you declare a member variable in some class like this:

      int numChannels;

      then the refactoring context menu will happily offer to create a getter and setter for you.

      However, if you declare it with a braced initializer, like this:

      int numChannels{2};

      ... the offer to create getter / setter is withdrawn.

      Can the refactoring menu provide create / getter setter when the member variable declaration has a braced initializer, or is there some technical reason why this isn't possible ?

       

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            judd Judd Niemann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes