📝 docs: instert inline explanation

This commit is contained in:
eshanized
2025-01-02 07:35:11 +05:30
parent 9b9f6cbcfa
commit caefdc2d1d

View File

@@ -508,10 +508,14 @@ void SnigdhaOSBlackbox::on_textWidget_buttonBox_clicked(QAbstractButton* button)
void SnigdhaOSBlackbox::on_selectWidget_buttonBox_Clicked(QAbstractButton* button) { void SnigdhaOSBlackbox::on_selectWidget_buttonBox_Clicked(QAbstractButton* button) {
// Check if the 'Ok' button was clicked in the 'selectWidget_buttonBox'.
if (ui->selectWidget_buttonBox->standardButton(button) == QDialogButtonBox::Ok) { if (ui->selectWidget_buttonBox->standardButton(button) == QDialogButtonBox::Ok) {
// If 'Ok' is clicked, transition to the 'APPLY' state.
updateState(State::APPLY); updateState(State::APPLY);
} }
// If any other button is clicked, transition to the 'QUIT' state.
else { else {
// If not 'Ok', the application will quit.
updateState(State::QUIT); updateState(State::QUIT);
} }
} }