-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.cpp
30 lines (24 loc) · 953 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
27
28
29
30
#include <DApplication>
#include <zconf.h>
#include <QtWidgets/QSystemTrayIcon>
#include "ui/mainwindow.h"
DWIDGET_USE_NAMESPACE
int main(int argc, char **argv) {
DApplication::loadDXcbPlugin();
DApplication app(argc, argv);
if (app.setSingleInstance(QString("firerain-campus-network_%1").arg(getuid()))) {
app.setTheme("light");
app.loadTranslator();
app.setApplicationDisplayName("校园网客户端");
app.setApplicationName(DApplication::translate("firerain-campus-network","校园网客户端"));
app.setApplicationVersion("1.0.1");
app.setOrganizationName("firerain");
app.setOrganizationDomain("firerain.xyz");
app.setApplicationDescription(DApplication::translate("MainWindow", "校园网客户端") + "\n");
app.setProductIcon(QIcon(":/images/logo.png"));
mainwindow window;
window.show();
return app.exec();
}
return 0;
}