From 8f504cfc913753717338cceb2f2cc4c47a83d316 Mon Sep 17 00:00:00 2001 From: HOJI Date: Mon, 11 Sep 2023 16:13:18 +0800 Subject: [PATCH] updata --- Hotel_Management.pro.user | 2 +- checkbtn.cpp | 5 +++-- receptionist.cpp | 1 + 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Hotel_Management.pro.user b/Hotel_Management.pro.user index 2aac369..0d6618f 100644 --- a/Hotel_Management.pro.user +++ b/Hotel_Management.pro.user @@ -1,6 +1,6 @@ - + EnvironmentId diff --git a/checkbtn.cpp b/checkbtn.cpp index 4042839..a691615 100644 --- a/checkbtn.cpp +++ b/checkbtn.cpp @@ -33,9 +33,10 @@ void checkbtn::on_pushButton_clicked() void checkbtn::setisused(bool i){ isused = i; + qDebug()<pushButton->setEnabled(!isused); - qDebug()<<"ssss"; + ui->pushButton->setEnabled(isused); + qDebug()<setisused(false); } cell->setbtn(); + cbtn->setbtn(); ui->tableWidget->setCellWidget(i,7,cell); ui->tableWidget->setCellWidget(i,6,cbtn);