fix build in ubuntu via using deprecated Qt function

This commit is contained in:
Garux 2022-10-27 09:51:52 +03:00
parent 9d3d204018
commit c618ce39af
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" ) ); form->addWidget( check_detail = new QCheckBox( "Use Detail Brushes" ) );
QObject::connect( group_style, &QButtonGroup::idClicked, [check_detail]( int id ){ QObject::connect( group_style, QOverload<int>::of( &QButtonGroup::buttonClicked ), [check_detail]( int id ){
check_detail->setEnabled( id == STYLE_BOB ); check_detail->setEnabled( id == STYLE_BOB );
} ); } );
check_detail->setEnabled( false ); check_detail->setEnabled( false );

View File

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