mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-09-02 17:32:25 +08:00
更新DAboutDialog
This commit is contained in:
parent
e472ba76f1
commit
9458bbf2c9
BIN
Logo-Spark.png
Normal file
BIN
Logo-Spark.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 43 KiB |
@ -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>
|
||||
|
23
main.cpp
23
main.cpp
@ -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();
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user