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

Hide or gray-out inactive included .pri files in project tree

    XMLWordPrintable

Details

    • Windows
    • 3941e25b8 (16.0)

    Description

      When including different .pri files based on some condition, both show up in the project tree even though only one of them is actually included.

      CONFIG(opt1) {
      	include(path/to/opt1.pri)
      }
      CONFIG(opt2) {
      	include(path/to/opt2.pri)
      } 

      In my case both include files add a directory to the INCLUDEPATH, so printing the INCLUDEPATH before and after inclusion confirms that, indeed, only one of the .pri files is actually included.

      It would be a lot more intuitive if only the one actually included would show up in the project tree, or if the inactive one was at least grayed-out as is done with inactive HEADERS and SOURCES.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            ptrckrhn Patrick Rhein
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes