diff --git a/src/modules/partition/gui/ExpandableRadioButton.cpp b/src/modules/partition/gui/ExpandableRadioButton.cpp index 886753cd8..74cbbe6c6 100644 --- a/src/modules/partition/gui/ExpandableRadioButton.cpp +++ b/src/modules/partition/gui/ExpandableRadioButton.cpp @@ -61,7 +61,11 @@ ExpandableRadioButton::setExpandableWidget( QWidget* widget ) updateGeometry(); connect( m_radio, &QRadioButton::toggled, - m_expandableWidget, &QWidget::setVisible ); + this, [this]( bool visible ) + { + m_expandableWidget->setVisible( visible ); + emit expanded( visible ); + } ); } diff --git a/src/modules/partition/gui/ExpandableRadioButton.h b/src/modules/partition/gui/ExpandableRadioButton.h index 4ac57ef97..c46016acb 100644 --- a/src/modules/partition/gui/ExpandableRadioButton.h +++ b/src/modules/partition/gui/ExpandableRadioButton.h @@ -36,6 +36,9 @@ public: void setExpandableWidget( QWidget* widget ); QWidget* expandableWidget() const; +signals: + void expanded( bool ); + private: QWidget* m_expandableWidget; bool m_expanded;