eliminate magic number in src/modules/welcome/WelcomePage.cpp

This commit is contained in:
bill-auger 2019-08-28 02:47:24 -04:00
parent 559a65d169
commit 4c3c6f3f91
No known key found for this signature in database
GPG Key ID: 908710913E8C7778

View File

@ -124,7 +124,8 @@ WelcomePage::WelcomePage( QWidget* parent )
mb.exec();
} );
ui->verticalLayout->insertWidget( 3, m_checkingWidget );
int welcome_text_idx = ui->verticalLayout->indexOf( ui->mainText );
ui->verticalLayout->insertWidget( welcome_text_idx + 1, m_checkingWidget );
}