1 #include "mainwindow.h"
2 #include <QApplication>
5 int main(int argc
, char *argv
[])
7 QApplication
a(argc
, argv
);
9 /* Set up translation system */
10 QString locale
= QLocale::system().name();
11 QTranslator translator
;
12 translator
.load(QString("translations/skavegra_") + locale
);
13 a
.installTranslator(&translator
);
15 /* Parse command-line arguments */
16 QString firstFileName
;
18 firstFileName
= QString(argv
[1]);
20 firstFileName
= QString();
23 /* Create main window */
24 MainWindow
w(0, firstFileName
);