mirror of
https://github.com/Snigdha-OS/snigdhaos-blackbox.git
synced 2025-09-20 19:45:02 +02:00
📝 docs: instert inline explanation
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user