aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@nokia.com>2011-08-24 11:04:19 +0200
committerTobias Hunger <tobias.hunger@nokia.com>2011-08-24 15:02:42 +0200
commitb7551b81166cdc6ae1ce629183e827d8e088052b (patch)
treefd830928136fb419fd366b012fd42b527a06efe3
parentab88ee2b3cb827676c01f21a3227a61a6626c36b (diff)
Detailswidget: Force minimum height
Task-number: QTCREATORBUG-5782 Change-Id: I3cd3584ca1f9878c36d75118302b76980cd8b4bc Reviewed-on: http://codereview.qt.nokia.com/3506 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
-rw-r--r--src/libs/utils/detailswidget.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libs/utils/detailswidget.cpp b/src/libs/utils/detailswidget.cpp
index 922aea8a64a..c74ab6e6fd8 100644
--- a/src/libs/utils/detailswidget.cpp
+++ b/src/libs/utils/detailswidget.cpp
@@ -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);