Add the expanded signal to ExpandableRadioButton.
This commit is contained in:
parent
526180dde2
commit
a65be8bfda
@ -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 );
|
||||
} );
|
||||
}
|
||||
|
||||
|
||||
|
@ -36,6 +36,9 @@ public:
|
||||
void setExpandableWidget( QWidget* widget );
|
||||
QWidget* expandableWidget() const;
|
||||
|
||||
signals:
|
||||
void expanded( bool );
|
||||
|
||||
private:
|
||||
QWidget* m_expandableWidget;
|
||||
bool m_expanded;
|
||||
|
Loading…
Reference in New Issue
Block a user