diff options
author | Nikolai Kosjar <nikolai.kosjar@qt.io> | 2019-11-25 10:09:21 +0100 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@qt.io> | 2019-11-27 14:42:12 +0000 |
commit | b2f5ed78e187fe57308549dde306563c7a9520e3 (patch) | |
tree | 6cd1f49420f2ed9d56fcc63bffa96c7430896021 /src/plugins/projectexplorer/projectpanelfactory.cpp | |
parent | 2ca150c097eac0aa224d8f0f1a73124a2403d12f (diff) |
ClangTools: Add "go to project settings" toolbar button
With the introduction of the "Analyze Current File" action the widget to
configure the diagnostic config was moved to the project panel (Project
mode > Project Settings > Clang Tools).
As not too many users are aware of the project settings there and
navigating there involves more user interation now (mode switch, looking
for the "Clang Tools" item), add a toolbar button as a shortcut.
Change-Id: I4c864045ef41ff501d925d3175ce604def213f29
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/projectpanelfactory.cpp')
-rw-r--r-- | src/plugins/projectexplorer/projectpanelfactory.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/projectpanelfactory.cpp b/src/plugins/projectexplorer/projectpanelfactory.cpp index d734b8d336d..c4eaef05b4c 100644 --- a/src/plugins/projectexplorer/projectpanelfactory.cpp +++ b/src/plugins/projectexplorer/projectpanelfactory.cpp @@ -80,6 +80,16 @@ void ProjectPanelFactory::destroyFactories() s_factories.clear(); } +Core::Id ProjectPanelFactory::id() const +{ + return m_id; +} + +void ProjectPanelFactory::setId(Core::Id id) +{ + m_id = id; +} + QString ProjectPanelFactory::icon() const { return m_icon; |