You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
656 B
41 lines
656 B
#include "checkbtn.h"
|
|
#include "ui_checkbtn.h"
|
|
#include "customerinfo.h"
|
|
#include <QDebug>
|
|
|
|
checkbtn::checkbtn(QWidget *parent) :
|
|
QWidget(parent),
|
|
ui(new Ui::checkbtn)
|
|
{
|
|
ui->setupUi(this);
|
|
}
|
|
|
|
checkbtn::~checkbtn()
|
|
{
|
|
delete ui;
|
|
}
|
|
|
|
void checkbtn::setroomNum(int roomNum){
|
|
this->roomNum = roomNum;
|
|
}
|
|
|
|
void checkbtn::setDB(QSqlDatabase db){
|
|
this->db = db;
|
|
}
|
|
|
|
void checkbtn::on_pushButton_clicked()
|
|
{
|
|
customerinfo *info = new customerinfo;
|
|
info->setDB(db);
|
|
info->setroomNum(roomNum);
|
|
info->show();
|
|
}
|
|
|
|
void checkbtn::setisused(bool i){
|
|
isused = i;
|
|
}
|
|
|
|
void checkbtn::setbtn(){
|
|
ui->pushButton->setEnabled(isused);
|
|
}
|