|
|
|
@ -45,7 +45,6 @@ AbstractControl::AbstractControl(const QString &title, const QString &desc, cons |
|
|
|
|
main_layout->addLayout(hlayout); |
|
|
|
|
|
|
|
|
|
// description
|
|
|
|
|
if (!desc.isEmpty()) { |
|
|
|
|
description = new QLabel(desc); |
|
|
|
|
description->setContentsMargins(40, 20, 40, 20); |
|
|
|
|
description->setStyleSheet("font-size: 40px; color: grey"); |
|
|
|
@ -57,9 +56,12 @@ AbstractControl::AbstractControl(const QString &title, const QString &desc, cons |
|
|
|
|
if (!description->isVisible()) { |
|
|
|
|
emit showDescription(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (!description->text().isEmpty()) { |
|
|
|
|
description->setVisible(!description->isVisible()); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
main_layout->addStretch(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|