-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
42 lines (36 loc) · 898 Bytes
/
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
/*
*
* qenes genealogy software
*
* Copyright (C) 2009-2010 Ari Tähti
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License veasion 2 as
* published by the Free Software Foundation.
*/
//#include <QtGui/
#include <QApplication>
//#include <QtGui/QApplication>
#include <QDialog>
//#include <QtGui/QDialog>
#include "mainwindow.h"
//#include "qmlmainwindow.h"
GeneData * geneData = NULL;
bool qmlGui;
bool canExit = true;
void main(int argc, char *argv[])
{
QTranslator trans;
trans.load(":/lang/lang/suomi.qm");
QApplication a(argc, argv);
a.installTranslator(&trans);
//if (QML_GUI) qmlGui = true; else qmlGui = false;
qmlGui = false;
if (!qmlGui)
{
MainWindow w;
w.trans = &trans;
w.show();
a.exec();
}
}