1 #include <QtGui>\r
2 \r
3 #include "mainwindow.h"\r
4 #include "weatherwidget.h"\r
5 #include "thermostatwidget.h"\r
6 #include "optionswidget.h"\r
7 #include "webdata.h"\r
8 \r
9 #include <QtDebug>\r
10 \r
11 int main(int argc, char *argv[])\r
12 {\r
13 \r
14 // If you're looking for where to start reading this code,\r
15 // check out STARTHERE.h\r
16 QApplication app(argc, argv);\r
17 \r
18 // read style sheet and apply pararmeters\r
19 QFile file(":/qss/thermostatdemo.qss");\r
20 file.open(QFile::ReadOnly);\r
21 app.setStyleSheet(file.readAll());\r
22 file.close();\r
23 // create main window and show\r
24 MainWindow *w = new MainWindow;\r
25 w->resize(qApp->desktop()->size());\r
26 w->showFullScreen();\r
27 \r
28 // enter application loop\r
29 return app.exec();\r
30 }\r
31 \r