rsyncui/main.cpp

25 lines
539 B
C++
Raw Normal View History

2023-01-07 12:44:45 +01:00
#include "mainwindow.h"
#include <QApplication>
2023-01-12 09:23:45 +01:00
#include <QSettings>
#include <KAboutData>
#include <KDBusService>
#include <QCommandLineParser>
2023-01-18 23:12:21 +01:00
#include<QTranslator>
2023-01-07 12:44:45 +01:00
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
2023-01-18 23:12:21 +01:00
QTranslator myappTranslator;
QLocale localeName = QLocale::system();
QString localeFile = "./RsyncUI_" + localeName.name() + ".qm";
if (myappTranslator.load(localeFile))
{
a.installTranslator(&myappTranslator);
}
2023-01-07 12:44:45 +01:00
MainWindow w;
w.show();
return a.exec();
}