Commit ffd428f2 authored by dt's avatar dt
Browse files

DetailsWidget: Only set the summary on one widget

That is not on both the label and the checkbox. The label supports html
formatted text, the checkbox not.
parent e08d872c
......@@ -212,12 +212,16 @@ namespace Utils {
void DetailsWidget::setSummaryText(const QString &text)
{
d->m_summaryLabel->setText(text);
d->m_summaryCheckBox->setText(text);
if (d->m_useCheckBox)
d->m_summaryCheckBox->setText(text);
else
d->m_summaryLabel->setText(text);
}
QString DetailsWidget::summaryText() const
{
if (d->m_useCheckBox)
return d->m_summaryCheckBox->text();
return d->m_summaryLabel->text();
}
......
......@@ -395,8 +395,8 @@ Qt4DefaultTargetSetupWidget::Qt4DefaultTargetSetupWidget(Qt4BaseTargetFactory *f
setLayout(vboxLayout);
vboxLayout->setContentsMargins(0, 0, 0, 0);
m_detailsWidget = new Utils::DetailsWidget(this);
m_detailsWidget->setSummaryText(factory->displayNameForId(id));
m_detailsWidget->setUseCheckBox(true);
m_detailsWidget->setSummaryText(factory->displayNameForId(id));
m_detailsWidget->setChecked(false);
m_detailsWidget->setSummaryFontBold(true);
m_detailsWidget->setIcon(factory->iconForId(id));
......
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