|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
/*
|
|
|
|
|
* Copyright 2014-2016 Markus Prasser
|
|
|
|
|
* Copyright 2014-2018 Markus Prasser
|
|
|
|
|
*
|
|
|
|
|
* This file is part of Labcontrol.
|
|
|
|
|
*
|
|
|
|
@ -17,18 +17,20 @@
|
|
|
|
|
* along with Labcontrol. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
|
#include "mainwindow.h"
|
|
|
|
|
#include "Lib/settings.h"
|
|
|
|
|
|
|
|
|
|
#include <QApplication>
|
|
|
|
|
|
|
|
|
|
#include "mainwindow.h"
|
|
|
|
|
#include "Lib/settings.h"
|
|
|
|
|
#include <memory>
|
|
|
|
|
|
|
|
|
|
std::unique_ptr< lc::Settings > settings;
|
|
|
|
|
std::unique_ptr<lc::Settings> settings;
|
|
|
|
|
|
|
|
|
|
int main( int argc, char *argv[] ) {
|
|
|
|
|
QApplication a{ argc, argv };
|
|
|
|
|
settings.reset( new lc::Settings{ QSettings{ "Labcontrol", "Labcontrol" } } );
|
|
|
|
|
int main(int argc, char *argv[])
|
|
|
|
|
{
|
|
|
|
|
QApplication a{argc, argv};
|
|
|
|
|
settings = std::make_unique<lc::Settings>(QSettings{"Labcontrol",
|
|
|
|
|
"Labcontrol"});
|
|
|
|
|
lc::MainWindow w;
|
|
|
|
|
w.show();
|
|
|
|
|
|
|
|
|
|