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

    • 73f3056c3ef3df8c4434c620eee5cab36a27b9f6

      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.

        For Gerrit Dashboard: QTCREATORBUG-11842
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes