Commit b7551b81 authored by Tobias Hunger's avatar Tobias Hunger

Detailswidget: Force minimum height

Task-number: QTCREATORBUG-5782
Change-Id: I3cd3584ca1f9878c36d75118302b76980cd8b4bc
Reviewed-on: http://codereview.qt.nokia.com/3506Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent ab88ee2b
......@@ -110,17 +110,18 @@ DetailsWidgetPrivate::DetailsWidgetPrivate(QWidget *parent) :
summaryLayout->setSpacing(0);
m_summaryLabel->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::LinksAccessibleByMouse);
m_summaryLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
m_summaryLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum);
m_summaryLabel->setContentsMargins(0, 0, 0, 0);
summaryLayout->addWidget(m_summaryLabel);
m_summaryCheckBox->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Preferred);
m_summaryCheckBox->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum);
m_summaryCheckBox->setAttribute(Qt::WA_LayoutUsesWidgetRect); /* broken layout on mac otherwise */
m_summaryCheckBox->setVisible(false);
m_summaryCheckBox->setContentsMargins(0, 0, 0, 0);
summaryLayout->addWidget(m_summaryCheckBox);
m_additionalSummaryLabel->setTextInteractionFlags(Qt::TextSelectableByMouse);
m_additionalSummaryLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum);
m_additionalSummaryLabel->setContentsMargins(MARGIN, MARGIN, MARGIN, MARGIN);
m_additionalSummaryLabel->setWordWrap(true);
m_additionalSummaryLabel->setVisible(false);
......
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