blob: d0d4dd1c7cb4958d8eaaa34b959d667d4ab51838 [file] [log] [blame]
Edric Milaret627500d2015-03-27 16:41:40 -04001/***************************************************************************
Edric Milaret4bba46d2015-04-29 16:33:38 -04002 * Copyright (C) 2015 by Savoir-Faire Linux *
Edric Milaret627500d2015-03-27 16:41:40 -04003 * Author: Edric Ladent Milaret <edric.ladent-milaret@savoirfairelinux.com>*
4 * *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU General Public License as published by *
7 * the Free Software Foundation; either version 3 of the License, or *
8 * (at your option) any later version. *
9 * *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
14 * *
15 * You should have received a copy of the GNU General Public License *
16 * along with this program. If not, see <http://www.gnu.org/licenses/>. *
17 **************************************************************************/
18
19#include "mainwindow.h"
20#include <QApplication>
21#include <QFile>
22
Edric Milaret12353822015-05-14 14:41:09 -040023#include "callmodel.h"
24#include <iostream>
25
26#include <QThread>
27
28#include <windows.h>
29
Edric Milaret627500d2015-03-27 16:41:40 -040030int
31main(int argc, char *argv[])
32{
33 QApplication a(argc, argv);
34
35 QFont font;
36 font.setFamily("Segoe UI");
37 a.setFont(font);
38
39 QFile file(":/stylesheet.css");
40 if(file.open(QIODevice::ReadOnly | QIODevice::Text))
41 {
42 a.setStyleSheet(file.readAll());
43 file.close();
44 }
45
46 MainWindow w;
47 w.show();
48
Edric Milaret12353822015-05-14 14:41:09 -040049 QObject::connect(&a, &QApplication::aboutToQuit, [&a]() {
50 delete CallModel::instance();
51 });
52
Edric Milaret627500d2015-03-27 16:41:40 -040053 return a.exec();
54}