Commit 1bcb9f49 authored by Nikolai Kosjar's avatar Nikolai Kosjar
Browse files

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: default avatarPrzemyslaw Gorszkowski <pgorszkowski@gmail.com>
Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
parent b09c2cd3
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment