-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
26 lines (25 loc) · 923 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
//-----------------------------------------------------------------------------------------------------------
// Emby Explorer (Qt) (w) 2024-2025 by Jan Buchholz
// Main
//-----------------------------------------------------------------------------------------------------------
#include "mainwindow.h"
#include <QApplication>
#include <QLocale>
#include <QTranslator>
#include <QStyleFactory>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
#if defined(Q_OS_WIN)
a.setStyle(QStyleFactory::create("windowsvista"));
#elif defined(Q_OS_MAC)
a.setStyle(QStyleFactory::create("fusion"));
#endif
if (!QLocale::system().name().startsWith("de_", Qt::CaseSensitive)) {
QTranslator translator;
if (translator.load("EmbyExplorerQt_en_US.qm")) a.installTranslator(&translator);
}
MainWindow w;
w.show();
return a.exec();
}