ssu
Loading...
Searching...
No Matches
main.cpp
Go to the documentation of this file.
1
7
8#include <QCoreApplication>
9#include <QTranslator>
10#include <QLocale>
11#include <QLibraryInfo>
12#include <QTimer>
13#include "ssucli.h"
14
15int main(int argc, char **argv)
16{
17 QCoreApplication app(argc, argv);
18 QCoreApplication::setOrganizationName("Jolla");
19 QCoreApplication::setOrganizationDomain("http://www.jollamobile.com");
20 QCoreApplication::setApplicationName("ssu");
21
22 QTranslator qtTranslator;
23 qtTranslator.load("qt_" + QLocale::system().name(),
24 QLibraryInfo::location(QLibraryInfo::TranslationsPath));
25 app.installTranslator(&qtTranslator);
26
27 SsuCli mw;
28 QTimer::singleShot(0, &mw, SLOT(run()));
29
30 return app.exec();
31}