Revert "fix build in ubuntu via using deprecated Qt function"

This reverts commit c618ce39af.
This commit is contained in:
Garux 2024-02-04 09:53:31 +06:00
parent e77d713bad
commit 60e3e48dd0
2 changed files with 2 additions and 2 deletions

View File

@ -210,7 +210,7 @@ bool DoBuildStairsBox( BuildStairsRS* rs ){
}
{
form->addWidget( check_detail = new QCheckBox( "Use Detail Brushes" ) );
QObject::connect( group_style, QOverload<int>::of( &QButtonGroup::buttonClicked ), [check_detail]( int id ){
QObject::connect( group_style, &QButtonGroup::idClicked, [check_detail]( int id ){
check_detail->setEnabled( id == STYLE_BOB );
} );
check_detail->setEnabled( false );

View File

@ -428,7 +428,7 @@ public:
static_cast<QHBoxLayout*>( m_hbox->layout() )->addLayout( m_radio.m_hbox );
m_hbox->layout()->addWidget( m_entry );
m_hbox->layout()->addWidget( m_butt.m_button );
QObject::connect( m_radio.m_radio, QOverload<int>::of( &QButtonGroup::buttonClicked ), ApplyRadioCaller( *this ) );
QObject::connect( m_radio.m_radio, &QButtonGroup::idClicked, ApplyRadioCaller( *this ) );
}
void release() override {
delete this;