File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed
Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change 2121
2222#include " mainwindow.h"
2323#include " sonicpilog.h"
24- #include < iostream>
25-
2624int main (int argc, char *argv[])
2725{
2826#ifndef Q_OS_MAC
2927 Q_INIT_RESOURCE (SonicPi);
3028#endif
3129
3230 QApplication app (argc, argv);
33-
34- QCommandLineParser parser;
35- parser.setApplicationDescription (" Sonic-Pi" );
36- parser.addHelpOption ();
37- parser.addVersionOption ();
38- QCommandLineOption lang_opt = {{" l" ," lang" },QObject::tr (" Override language to <locale>" )," locale" };
39- parser.addOption (lang_opt);
40- parser.process (app);
41-
4231 qRegisterMetaType<SonicPiLog::MultiMessage>(" SonicPiLog::MultiMessage" );
43-
32+
4433 QString systemLocale = QLocale::system ().name ();
45- if ( parser.isSet (lang_opt) ) systemLocale = parser.value (lang_opt);
4634
4735 QTranslator qtTranslator;
4836 qtTranslator.load (" qt_" + systemLocale, QLibraryInfo::location (QLibraryInfo::TranslationsPath));
You can’t perform that action at this time.
0 commit comments