]> ruin.nu Git - hbs.git/blob - bs/main.cpp
ea8ef3f81170e94afac3b27352e16614921391ca
[hbs.git] / bs / main.cpp
1 /***************************************************************************
2                           main.cpp  -  description
3                              -------------------
4     begin     : mån okt 23 17:11:28 CEST 2000
5     copyright : (C) 2000 by Michael Andreen
6     email     : whale@linux.nu
7     changes   :
8  ***************************************************************************/
9
10 /***************************************************************************
11  *                                                                         *
12  *   This program is free software; you can redistribute it and/or modify  *
13  *   it under the terms of the GNU General Public License as published by  *
14  *   the Free Software Foundation; either version 2 of the License, or     *
15  *   (at your option) any later version.                                   *
16  *                                                                         *
17  ***************************************************************************/
18 #include <qapplication.h>
19 #include <qfont.h>
20 #include <qcdestyle.h>
21
22 #include "../config.h"
23 #include "bc.h"
24
25 int main(int argc, char *argv[])
26 {
27         QApplication a(argc, argv);
28         
29         //QStyle* s = new QCDEStyle();
30         
31         a.setFont(QFont("times", 12));
32         /* uncomment the following line, if you want a Windows 95 look*/
33         // a.setStyle(WindowsStyle);
34         //a.setStyle(s);
35         BcApp *bc=new BcApp();
36         a.setMainWidget(bc);
37
38         bc->setCaption("Hårvalens BattleCalc" VERSION);
39         //eonsl->showMaximized();
40         bc->resize(800,600);
41         bc->show();
42
43         return a.exec();
44 }