-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
76 lines (66 loc) · 1.59 KB
/
main.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
#include "View/loginwindow.h"
#include <Model/documententity.h>
#include <Model/documentmodel.h>
#include <View/librarianwindow.h>
#include <Model/usermodel.h>
#include <Model/usermodelentity.h>
#include<Model/librariancopymodel.h>
#include <QApplication>
#include <QDebug>
#include <Data/documentdataproxy.h>
#include <cassert>
#include <QTableView>
#include "View/usermodelview.h"
#include "View/adduserdialog.h"
#include "Model/documententity.h"
#include "Controller/usermanagerwidget.h"
#include "Model/documentmodel.h"
#include "View/adddialog_av.h"
#include "View/prevdocumentview.h"
#include <Controller/documentmanagerwidget.h>
#include "Model/documentmodel.h"
#include "View/adddialog_book.h"
#include <Controller/librariancopymanager.h>
#include <Controller/usercopymanager.h>
#include<View/userwindow.h>
#include <QFile>
#include <QTextStream>
#include<testsuite.h>
#include <QStandardPaths>
#include <QDesktopServices>
#include <QDir>
/*!
*
* \authors Hussain Kara Fallah
* \version 1.0
* \mainpage InnoLibraryManager
*
* \warning Project is based and tested on Qt 5.10.0
*
* \date 2018, March
*
*/
void runapp(){
TestSuite T = TestSuite();
T.runnall();
T.TC4();
LoginWindow *w = new LoginWindow();
w->show();
}
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
QFile f("CSS/style.qss");
if (!f.exists())
{
printf("Unable to set stylesheet, file not found\n");
}
else
{
f.open(QFile::ReadOnly | QFile::Text);
QTextStream ts(&f);
a.setStyleSheet(ts.readAll());
}
runapp();
return a.exec();
}