-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
26 lines (24 loc) · 750 Bytes
/
main.cpp
File metadata and controls
26 lines (24 loc) · 750 Bytes
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
/////////////////////////////////////////////////////////////////////////////
// Name: main.cpp
// Purpose: Main
// Author: Jan Buchholz
// Created: 2025-10-13
// Changed: 2026-04-06
/////////////////////////////////////////////////////////////////////////////
#include "mainwindow.h"
#include <QApplication>
#include <QStyleFactory>
#include "jbcrypto/jbselftest.h"
int main(int argc, char *argv[]) {
JBSelfTest st;
if (!st.doAllTests()) return 255;
QApplication a(argc, argv);
#if defined (Q_OS_WIN)
a.setStyle(QStyleFactory::create("fusion"));
#elif defined (Q_OS_MAC)
a.setStyle(QStyleFactory::create("macos"));
#endif
MainWindow w;
w.show();
return a.exec();
}