-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmain.cpp
More file actions
25 lines (19 loc) · 681 Bytes
/
Copy pathmain.cpp
File metadata and controls
25 lines (19 loc) · 681 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
#include "zerotiermanager.h"
#include <QApplication>
#include <QSystemTrayIcon>
#include <QMessageBox>
int main(int argc, char *argv[])
{
Q_INIT_RESOURCE(zerotieronegui);
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
QApplication a(argc, argv);
if (!QSystemTrayIcon::isSystemTrayAvailable()) {
QMessageBox::critical(nullptr, QObject::tr("Systray"),
QObject::tr("I couldn't detect any system tray "
"on this system. This feature is required."));
return 1;
}
QApplication::setQuitOnLastWindowClosed(false);
ZeroTierManager w;
return a.exec();
}