forked from qt-creator/qt-creator
DetailsWidget: Don't allow the summary label to expand too much
The summary label must not be able to make the DetailsWidget grow horizontally. Task-number: QTCREATORBUG-24136 Change-Id: If71b007c02ad1bbcdd4f2e3bf083dfce24a14787 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -110,9 +110,9 @@ DetailsWidgetPrivate::DetailsWidgetPrivate(QWidget *parent) :
|
|||||||
summaryLayout->addWidget(m_summaryLabelIcon);
|
summaryLayout->addWidget(m_summaryLabelIcon);
|
||||||
|
|
||||||
m_summaryLabel->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::LinksAccessibleByMouse);
|
m_summaryLabel->setTextInteractionFlags(Qt::TextSelectableByMouse | Qt::LinksAccessibleByMouse);
|
||||||
m_summaryLabel->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum);
|
m_summaryLabel->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Minimum);
|
||||||
m_summaryLabel->setContentsMargins(0, 0, 0, 0);
|
m_summaryLabel->setContentsMargins(0, 0, 0, 0);
|
||||||
summaryLayout->addWidget(m_summaryLabel);
|
summaryLayout->addWidget(m_summaryLabel, 1);
|
||||||
|
|
||||||
m_summaryCheckBox->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum);
|
m_summaryCheckBox->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Minimum);
|
||||||
m_summaryCheckBox->setAttribute(Qt::WA_LayoutUsesWidgetRect); /* broken layout on mac otherwise */
|
m_summaryCheckBox->setAttribute(Qt::WA_LayoutUsesWidgetRect); /* broken layout on mac otherwise */
|
||||||
|
Reference in New Issue
Block a user