2007-12-01 10:47:15 +00:00
|
|
|
/*
|
2016-05-13 17:40:36 +00:00
|
|
|
Copyright 2006-2016 The QElectroTech Team
|
2007-12-01 10:47:15 +00:00
|
|
|
This file is part of QElectroTech.
|
|
|
|
|
|
|
|
QElectroTech is free software: you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation, either version 2 of the License, or
|
|
|
|
(at your option) any later version.
|
|
|
|
|
|
|
|
QElectroTech is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
2007-09-21 13:22:18 +00:00
|
|
|
#include "qetapp.h"
|
2015-09-16 15:11:13 +00:00
|
|
|
|
2006-10-27 15:47:22 +00:00
|
|
|
/**
|
2015-09-16 15:11:13 +00:00
|
|
|
* @brief main
|
|
|
|
* Main function of QElectroTech
|
|
|
|
* @param argc : number of paramètres
|
|
|
|
* @param argv : paramètres
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
|
|
|
//Some setup, notably to use with QSetting.
|
|
|
|
QCoreApplication::setOrganizationName("QElectroTech");
|
|
|
|
QCoreApplication::setOrganizationDomain("qelectrotech.org");
|
|
|
|
QCoreApplication::setApplicationName("QElectroTech");
|
|
|
|
//Creation and execution of the application
|
2016-03-18 16:34:55 +00:00
|
|
|
#if (QT_VERSION >= QT_VERSION_CHECK(5, 6, 0))
|
|
|
|
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
|
|
|
#endif
|
2007-09-22 13:27:14 +00:00
|
|
|
return(QETApp(argc, argv).exec());
|
2006-10-27 15:47:22 +00:00
|
|
|
}
|