更新DAboutDialog

This commit is contained in:
shenmo 2020-09-23 16:08:44 +08:00
parent e472ba76f1
commit 9458bbf2c9
4 changed files with 20 additions and 8 deletions

BIN
Logo-Spark.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

View File

@ -31,4 +31,7 @@
<file>icons/category_active_dark.svg</file>
<file>icons/category_active.svg</file>
</qresource>
<qresource prefix="/">
<file>Logo-Spark.png</file>
</qresource>
</RCC>

View File

@ -3,22 +3,31 @@
#include <QDesktopWidget>
#include <widget.h>
#include <QTranslator>
#include <DAboutDialog>
DWIDGET_USE_NAMESPACE
int main(int argc, char *argv[])
{
DApplication::loadDXcbPlugin(); //让bar处在标题栏中
DApplication a(argc, argv);
DAboutDialog dialog;
a.setAttribute(Qt::AA_UseHighDpiPixmaps);
a.loadTranslator();
a.setOrganizationName("spark-union");
a.setApplicationVersion(DApplication::buildVersion("2.0"));
a.setAboutDialog(&dialog);
dialog.setLicense("本程序按GPL第三版开源");
dialog.setVersion(DApplication::buildVersion("2.0"));
a.setApplicationAcknowledgementPage("https://gitee.com/deepin-community-store/spark-store");
a.setProductIcon(QIcon::fromTheme("spark-store")); //设置Logo
dialog.setProductIcon(QIcon::fromTheme("spark-store")); //设置Logo
dialog.setProductName(QLabel::tr("Spark应用商店"));
dialog.setDescription(QLabel::tr("社区驱动的一款为第三方应用商店,为改变而生\n We born for change"));
dialog.setProductName(QLabel::tr("Spark应用商店"));
dialog.setCompanyLogo(QPixmap(":/Logo-Spark.png"));
dialog.setWebsiteName("The Spark Project");
dialog.setWebsiteLink("https://gitee.com/deepin-community-store");
a.setProductName(QLabel::tr("Spark应用商店"));
a.setApplicationDescription(QLabel::tr("社区驱动的一款为第三方应用商店,为改变而生\n本程序按GPL第三版开源"));
a.setApplicationName(QLabel::tr("Spark应用商店"));
Widget w;
QDesktopWidget *s=DApplication::desktop();
int d_w=s->width();

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 4.8.2, 2020-09-18T12:36:30. -->
<!-- Written by QtCreator 4.8.2, 2020-09-23T16:08:19. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>