-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.cpp
37 lines (32 loc) · 1.19 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
#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("Deepines ToDo");
a.setApplicationName("Deepines ToDo");
a.setAboutDialog(&dialog);
//Title
dialog.setWindowTitle("Deepines ToDo");
//descritcion
dialog.setProductName("<span>ToDo App of the deepin community in Spanish</span>");
//icons
dialog.setCompanyLogo(QPixmap("://Logo-Racoon.png"));
//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 1.0"));
dialog.setWebsiteName("deepinenespañol.org");
dialog.setWebsiteLink("https://deepinenespañol.org");
MainWindow w;
w.show();
Dtk::Widget::moveToCenter(&w);
return a.exec();
}