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.
This commit is contained in:
dt
2011-05-12 18:07:49 +02:00
parent e08d872c7b
commit ffd428f2eb
2 changed files with 7 additions and 3 deletions

View File

@@ -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();
}