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

Improve navigation with private headers

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • None
    • None

    Description

      Often an object-orientated implementation consists of the following file:

      • class.cpp - the implementation
      • class.h - the public header
      • class_p.h - the private header

      While navigating with "Goto definition" already works, switching from the CPP to the private header is not possible with F4. Switching back already works.

      There are two possible solutions:

      1. Switch roundwise from CPP to H to P_H to CPP with every F4 press
      2. Use a different shortcut (like Shift+F4) to switch between CPP and P_H

      The pattern for the private headers should be customizable in Tools > Options > C++ > File Naming

      The feature should also be possible for C source, as the same design pattern can be used there.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            aha_1980 André Hartmann
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes