Dock widget update bugfix
[Skavegra.git] / main.cpp
blob81d997dbf5a3b377b0cab4b83ae11e62fe0fdaed
1 #include "mainwindow.h"
2 #include <QApplication>
3 #include <QTranslator>
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;
17 if(argc >= 2) {
18 firstFileName = QString(argv[1]);
19 } else {
20 firstFileName = QString();
23 /* Create main window */
24 MainWindow w(0, firstFileName);
25 w.show();
27 return a.exec();