-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdashboard.cpp
37 lines (29 loc) · 996 Bytes
/
dashboard.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include "mainwindow.h"
#include<QDebug>
#include "package.h"
void MainWindow::dashboard(){
Action();
MenuItem();
setWindowTitle("Dashboard");
style();
QVBoxLayout *layout = new QVBoxLayout();
// QLabel *title = new QLabel("Sano Hotel Administration");
// QFont banner("Helvetica",30,QFont::Bold);
// title->setFont(banner);
// title->setAlignment(Qt::AlignHCenter);
// title->setFixedHeight(70);
QWidget *image = new QWidget();
image->setStyleSheet("*{border-image: url(':/Resources/hotel.jpg') 0 0 0 0 stretch stretch;}");
// layout->addWidget(title);
layout->addWidget(image);
rightside->setLayout(layout);
rightside->setStyleSheet("*{background:white;}");
}
void MainWindow::Customer(){
setWindowTitle("Guests Records");
style();
QVBoxLayout *tablelayout = new QVBoxLayout();
rightside->setLayout(tablelayout);
rightside->setStyleSheet("*{background:white;}");
tablelayout->addWidget(guesttable());
}