checkInForm::checkInForm(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::checkInForm)
{
    ui->setupUi(this);

    QRegExp regExp1("[A-Za-z][A-Za-z ]*[A-Za-z0-9]*");
    ui->nameText->setValidator(new QRegExpValidator(regExp1, this));

    QRegExp regExp2("[1-9][0-9]*[0-9]*");
    ui->phone->setValidator(new QRegExpValidator(regExp2, this));

    QRegExp regExp3("[A-Za-z0-9][A-Za-z0-9, ]*[A-Za-z0-9 ]*");
    ui->addText->setValidator(new QRegExpValidator(regExp3, this));
    QRegExp regExp4("[0-9]{8,8}");
    ui->LinCIN->setValidator(new QRegExpValidator(regExp4, this));
    QDate QDTime = QDate::currentDate();
    QDTime.addDays(1);
    ui->datedepart2->setDate(QDTime);


    ui->datedepart2->setShown(1);
    ui->dated2->setShown(1);
    ui->dated->setShown(0);
    ui->datedepart->setShown(0);

    setupview();




}
mainWindow::mainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::mainWindow)
{
    ui->setupUi(this);


    setupview();
}
editRoom::editRoom(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::editRoom)
{
    ui->setupUi(this);
    QRegExp regExp1("[0-9][0-9 ][0-9]*");
    ui->roomName->setValidator(new QRegExpValidator(regExp1, this));
    ui->catList->addItem(" :: Select One :: ");
    setupview();
}
void mainWindow::setupviewS()
{
    setupview();
}