From caefdc2d1d46e39ba85a15c652901d17d4de0ea4 Mon Sep 17 00:00:00 2001 From: eshanized Date: Thu, 2 Jan 2025 07:35:11 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20docs:=20instert=20inline=20expla?= =?UTF-8?q?nation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- qt/snigdhaosblackbox.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qt/snigdhaosblackbox.cpp b/qt/snigdhaosblackbox.cpp index ca6042d..cdb9abe 100644 --- a/qt/snigdhaosblackbox.cpp +++ b/qt/snigdhaosblackbox.cpp @@ -508,10 +508,14 @@ void SnigdhaOSBlackbox::on_textWidget_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 'Ok' is clicked, transition to the 'APPLY' state. updateState(State::APPLY); } + // If any other button is clicked, transition to the 'QUIT' state. else { + // If not 'Ok', the application will quit. updateState(State::QUIT); } }