1 //===========================================
2 //  Lumina-DE source code
3 //  Copyright (c) 2015, Ken Moore
4 //  Available under the 3-clause BSD license
5 //  See the LICENSE file for full details
6 //===========================================
7 #include <QApplication>
8 #include <QDebug>
9 
10 #include <LuminaThemes.h>
11 #include <LUtils.h>
12 
13 #include "MainUI.h"
14 
main(int argc,char * argv[])15 int  main(int argc, char *argv[]) {
16    LTHEME::LoadCustomEnvSettings();
17    QApplication a(argc, argv);
18     a.setAttribute(Qt::AA_UseHighDpiPixmaps);
19    LUtils::LoadTranslation(&a, "l-te");
20    //Now go ahead and setup the app
21    //LuminaThemeEngine theme(&a);
22    QStringList args;  //list<string> in c++11 stl container.
23    for(int i=1; i<argc; i++){
24        // qDebug() << argv[i] << endl;
25       args << QString(argv[i]);
26    }
27    //Now start the window
28    MainUI W;
29 
30     //QObject::connect(&theme, SIGNAL(updateIcons()), &W, SLOT(updateIcons()) );
31     W.LoadArguments(args);
32    W.show();
33    return  a.exec();
34 }
35