diff options
author | Eike Ziller <eike.ziller@qt.io> | 2018-04-19 15:18:39 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2018-04-20 14:15:52 +0000 |
commit | 2dff9a03ac9bea45b3a235b12d3bc474f30d7a4d (patch) | |
tree | e83072c20cef665382935f244646d67c798b1589 /src/plugins/cpptools | |
parent | 7421e59a77ec179a40a5ae9db70fc8b3eb149962 (diff) | |
download | qt-creator-2dff9a03ac9bea45b3a235b12d3bc474f30d7a4d.tar.gz |
Improve behavior of cpp editor tool bar
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>
Diffstat (limited to 'src/plugins/cpptools')
-rw-r--r-- | src/plugins/cpptools/cppeditoroutline.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/cpptools/cppeditoroutline.cpp b/src/plugins/cpptools/cppeditoroutline.cpp index 7d520bcfc8..b3a751e664 100644 --- a/src/plugins/cpptools/cppeditoroutline.cpp +++ b/src/plugins/cpptools/cppeditoroutline.cpp @@ -112,6 +112,7 @@ CppEditorOutline::CppEditorOutline(TextEditor::TextEditorWidget *editorWidget) m_combo->setMinimumContentsLength(22); QSizePolicy policy = m_combo->sizePolicy(); policy.setHorizontalPolicy(QSizePolicy::Expanding); + policy.setHorizontalStretch(2); m_combo->setSizePolicy(policy); m_combo->setMaxVisibleItems(40); |