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

CMake projects have sources and headers splitted in separate nodes

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 4.11.0, Qt Creator 4.12.0-beta2
    • None

      In previous versions up to 4.10, source and header files in the same folder were in the same folder too in QtCreator's project explorer.

      But since 4.11, intermediate nodes appeared (probably because of default cmake source_group) splitting source and headers in separate location in the project explorer.

      I tried to accustom myself to the new behavior, but I still miss the previous way without separate headers and sources, especially with bigger projects with sub directories.

       

      See for example if I'm working on the class "TheClassImLookingFor", I need to scroll every time in qtcreator 4.12 to find the header subtree or source subtree.

      Also, having opened subdirectories almost guarantee that only a part of the project tree will be displayed on screen possibly hidden if I'm in the headers or sources subtree, where I can only determinate this by either scrolling or looking at file extensions.

      To me this is unfriendly because of the additional level in the project tree in project explorer and this when searching for a source or header, there are 2 completely separated locations to find only one of them.

      I think header and sources are splitted since commit 18eb0b39c517019c9fec711c055b5d42f20aae10.

      So I'm requesting a way to revert that splitted header/source behavior when not using source_group in CMake (that is, when source groups are the auto generated ones).

        1. image-2020-03-28-18-17-33-626.png
          16 kB
          Alexis Murzeau
        2. image-2020-03-28-18-17-41-989.png
          25 kB
          Alexis Murzeau
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            hunger Tobias Hunger
            amurzeau Alexis Murzeau
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes