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

include base class header when adding new class

    XMLWordPrintable

    Details

    • Commits:
      bcc2b5e08d44f3b8a601a48f5c6d7e8a9f5e6c79 (qt-creator/qt-creator/master)

      Description

      When automatically generating a new C++ class in creator, you can specify a base class but it doesn't seem to automatically add the #include for the base class header. This was observed when the base class was another, pre-existing, class in the same project, so presumably Creator knows where the class has been defined (or can find out by searching that project's headers).

      It's understandable that creator can't add the includes for every possible base class, but if it's already defined in the current project then it seems like creator could go a little farther with its code generation.

        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:
              aalpert-nokia Alan Alpert (closed Nokia identity) (Inactive)
              Votes:
              5 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes