diff options
author | Ivan Donchevskii <ivan.donchevskii@qt.io> | 2019-03-14 15:34:14 +0100 |
---|---|---|
committer | hjk <hjk@qt.io> | 2019-04-05 15:26:19 +0000 |
commit | 2c5808bada8cbca42131e63495f4dd251b36acfb (patch) | |
tree | 679ca4dabcb213fc23b98e123be7955f45818e1c /src/plugins/projectexplorer/projecttree.h | |
parent | d34eb692fefbeaf6080ffbc150ea4d9b414420f7 (diff) |
CompilationDatabase: Ask for the root path and scan for headers
Let's use the same approach we have for CMake projects by using
the same TreeScanner class.
Compilation database does not have a concept of the root directory
so let's show a file dialog and ask for it the first time the project
is loaded. Next times we open it we take this path from settings.
This root path can later be changed from the project tree context menu.
Fixes: QTCREATORBUG-22031
Change-Id: I151aed8d0504b2e8aa14aa774cad25f8c86d5c17
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/projecttree.h')
-rw-r--r-- | src/plugins/projectexplorer/projecttree.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/projecttree.h b/src/plugins/projectexplorer/projecttree.h index 238c55a910..73234ab2a0 100644 --- a/src/plugins/projectexplorer/projecttree.h +++ b/src/plugins/projectexplorer/projecttree.h @@ -81,6 +81,8 @@ public: void collapseAll(); void expandAll(); + void changeProjectRootDirectory(); + // for nodes to emit signals, do not call unless you are a node static void emitSubtreeChanged(FolderNode *node); |