mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-02 03:52:11 +08:00
86cc8f615c
* faster spinner * initApp * no brightness * Update selfdrive/ui/qt/util.h Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com> old-commit-hash: b7f8c6ad03e70b9b73ef67238c7a5946b315483e
25 lines
646 B
C++
25 lines
646 B
C++
#include <QApplication>
|
|
#include <QSslConfiguration>
|
|
|
|
#include "selfdrive/hardware/hw.h"
|
|
#include "selfdrive/ui/qt/qt_window.h"
|
|
#include "selfdrive/ui/qt/util.h"
|
|
#include "selfdrive/ui/qt/window.h"
|
|
|
|
int main(int argc, char *argv[]) {
|
|
qInstallMessageHandler(swagLogMessageHandler);
|
|
initApp();
|
|
|
|
if (Hardware::EON()) {
|
|
QSslConfiguration ssl = QSslConfiguration::defaultConfiguration();
|
|
ssl.setCaCertificates(QSslCertificate::fromPath("/usr/etc/tls/cert.pem"));
|
|
QSslConfiguration::setDefaultConfiguration(ssl);
|
|
}
|
|
|
|
QApplication a(argc, argv);
|
|
MainWindow w;
|
|
setMainWindow(&w);
|
|
a.installEventFilter(&w);
|
|
return a.exec();
|
|
}
|