-
Notifications
You must be signed in to change notification settings - Fork 7
/
main.cpp
33 lines (26 loc) · 916 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
31
32
33
#include <DApplication>
#include <DMainWindow>
#include <DWidgetUtil>
#include <DApplicationSettings>
#include <smartisanoslogo.h>
DWIDGET_USE_NAMESPACE
int main(int argc, char *argv[])
{
// DApplication::loadDXcbPlugin();
QGuiApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
DApplication a(argc, argv);
a.setOrganizationName("deepin");
a.setApplicationName("dtk_Smartisanos图标下载助手");
a.setApplicationVersion("0.7");
a.setProductIcon(QIcon(":/images/smartisan.ico"));
a.setProductName("DTK_Smartisanos图标下载助手");
a.setApplicationDescription("这是一个DTK_Smartisanos图标下载助手应用");
a.loadTranslator();
a.setApplicationDisplayName(QCoreApplication::translate("Main", "DtkSerialport"));
DApplicationSettings as;
Q_UNUSED(as)
SmartisanOsLogo S;
S.show();
Dtk::Widget::moveToCenter(&S);
return a.exec();
}