forked from qt-creator/qt-creator
CppEditor: Fix size policy in CppIncludeHierarchyWidget
Re-produce the fixed problem with: 1. Shut down Qt Creator while having the include hierarchy sidebar open. 2. Re-start Qt Creator - the side bar is displayed again, but the "No include hierarchy available" label is not scaled at the full sidebar size, but only to 50%. Change-Id: I24e84bfd7cbb9dd9383a60179f5444de9401015d Reviewed-by: Przemyslaw Gorszkowski <pgorszkowski@gmail.com> Reviewed-by: Christian Stenger <christian.stenger@digia.com>
This commit is contained in:
@@ -110,6 +110,7 @@ CppIncludeHierarchyWidget::CppIncludeHierarchyWidget() :
|
||||
m_includeHierarchyInfoLabel->setAlignment(Qt::AlignCenter);
|
||||
m_includeHierarchyInfoLabel->setAutoFillBackground(true);
|
||||
m_includeHierarchyInfoLabel->setBackgroundRole(QPalette::Base);
|
||||
m_includeHierarchyInfoLabel->setSizePolicy(QSizePolicy::Preferred, QSizePolicy::Expanding);
|
||||
|
||||
QVBoxLayout *layout = new QVBoxLayout;
|
||||
layout->setMargin(0);
|
||||
|
Reference in New Issue
Block a user