Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-20146 Mitch's refactoring suggestions
  3. QTCREATORBUG-11842

Provide a refactoring option to add a variable as a member

    XMLWordPrintable

    Details

    • Commits:
      73f3056c3ef3df8c4434c620eee5cab36a27b9f6

      Description

      It would be super nice to have a refactoring option that adds a variable to the class it's used within. For example, pressing alt + enter over mPicture below could bring up an option entitled "Add Member Variable":

      ImageWidget(const QPicture &picture) : mPicture(picture) {
      }
      

      This would be useful when writing quick test cases for bugs, for example.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              kandeler Christian Kandeler
              Reporter:
              mitch_curtis Mitch Curtis
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes