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

Add not yet defined function/slot from use of it.

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • None
    • C/C++/Obj-C++ Support
    • None
    • This is an editing/refactring feature in Qt Creator which will apply to all platforms.

    Description

      It would be really cool to add function to a class through refactor menu the following way.

      Suppose I am writing a function which is getting longer. I decide to introduce a new small function which does part of the job. Say I want to call this function say CalculateFactorial( num ).

      Notice that I haven't added this function to the class yet but something I want to do but I already wrote it in my function where I want to call it. If I can right click on this proposed function and in refactor menu, I get the option to add this function as member function would be cool. Since it is suppose to be sub-function of sort, by default it should be protected (not public).

      Attachments

        Issue Links

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

          Activity

            People

              kandeler Christian Kandeler
              xalam Shahzad
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes