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

Implement Getter and Setter functions solely in header file

    XMLWordPrintable

Details

    • 5b5ae971045adebe40209150cf9e1cac6cc62191 (qt-creator/qt-creator/master)

    Description

      I usually do not declare getter/setter functions on .cpp file.
      This suggestion is to add another button to only create these functions on the header file.

      Eg:
      void setVariable(const Type& variable)

      { m_variable = variable; }

      Type getVariable() const

      { return m_variable; }

      The new button is just a thought on the easiest way to achieve this.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            hrsantiago Henrique Santiago
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes