forked from alvarosamudio/Password-Generator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
40 lines (34 loc) · 1.3 KB
/
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
34
35
36
37
38
39
40
#include "mainwindow.h"
#include <DApplication>
#include <DWidgetUtil>
#include <DAboutDialog>
DWIDGET_USE_NAMESPACE
int main(int argc, char *argv[])
{
DApplication::loadDXcbPlugin();
DApplication a(argc, argv);
DAboutDialog dialog;
a.setAttribute(Qt::AA_UseHighDpiPixmaps);
a.setProductName("Password Generator");
a.setApplicationName("Password Generator");
a.setAboutDialog(&dialog);
//Title
dialog.setWindowTitle("Password Generator");
//descritcion
dialog.setProductName("<span>Generate random passwords by choosing the size and complexity</span>");
//icons
dialog.setProductIcon(QIcon(":/imege/passwordgenerator.svg"));
dialog.setCompanyLogo(QPixmap(":/image/deepines.svg"));
//about
dialog.setDescription(
"<span style=' font-size:8pt; font-weight:600;'>Deepin en Español </span>"
"<a href='https://deepinenespañol.org'>https://deepinenespañol.org</a><br/>"
"<span style=' font-size:8pt; font-weight:600;'>Deepin Latin Code - developers</span>");
dialog.setVersion(DApplication::buildVersion("Version 0.1"));
dialog.setWebsiteName("deepinenespañol.org");
dialog.setWebsiteLink("https://deepinenespañol.org");
MainWindow w;
w.show();
Dtk::Widget::moveToCenter(&w);
return a.exec();
}