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.

34 lines
516 B

#ifndef CHECKBTN_H
#define CHECKBTN_H
#include <QWidget>
#include <QSqlDatabase>
namespace Ui {
class checkbtn;
}
class checkbtn : public QWidget
{
Q_OBJECT
public:
explicit checkbtn(QWidget *parent = nullptr);
~checkbtn();
void setroomNum(int roomNum);
void setDB(QSqlDatabase db);
void setisused(bool i);
void setbtn();
private slots:
void on_pushButton_clicked();
private:
Ui::checkbtn *ui;
int roomNum;
QSqlDatabase db;
bool isused;
};
#endif // CHECKBTN_H