aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cppeditor/cppparsecontext.h
Commit message (Collapse)AuthorAgeFilesLines
* Improve behavior of cpp editor tool barEike Ziller2018-04-201-0/+2
| | | | | | | | | | | | | | | | | The parse context drop down was taking a content based, fixed amount of space in the editor tool bar, without being shrinkable. That was especially bad if you have a long project / target name. When working with a small window / split, the outline drop down would be dropped from the tool bar. This patch makes the parse context drop down shrinkable (with a small minimum size), and gives the outline drop down a slightly higher priority for getting tool bar space. Task-number: QTCREATORBUG-19386 Change-Id: I87e3ee2e411a43b1f398ffd24fe5608e4df02af6 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* CppEditor: Rework showing/switching parse configurationsNikolai Kosjar2017-02-031-0/+83
* Move the combox box for switching the parse configurations out of the "Additional Preprocessor Directives" dialog ('#'-button) to make it better visible/accessible. Also, decouple the extra preprocessor directives from the concrete parse context since this is not anymore in same dialog. * The combo box appears only if multiple parse configurations are available for a file. * The first time multiple parse configurations are detected, an info bar is shown that points the user to the combox box. A "Do Not Show Again" button is provided. * Upon selecting an entry, the preferred parse configuration is saved as part of the session. The setting can be cleared with the context menu entry on the combo box. Follow-up changes need to ensure that the display name and/or tooltip is unambiguous, e.g. for qbs and cmake projects. Change-Id: I9e9773704187291524ad7b605bfdddd83ef5b19d Reviewed-by: David Schulz <david.schulz@qt.io>