mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-07-15 01:52:21 +08:00
keep old version AboutDialog
Keep old version AboutDialog to be compatible with ubuntu.
This commit is contained in:
parent
ee51f59874
commit
8e89ce3ae3
30
main.cpp
30
main.cpp
@ -19,17 +19,35 @@ int main(int argc, char *argv[])
|
||||
dialog.setVersion(DApplication::buildVersion("Version 2.0.2.5"));
|
||||
dialog.setProductIcon(QIcon::fromTheme("spark-store")); //设置Logo
|
||||
dialog.setProductName(QLabel::tr("Spark Store"));
|
||||
dialog.setDescription(QObject::tr(
|
||||
"<span style=' font-size:10pt;font-weight:60;'>An appstore powered by deepin community</span><br/>"
|
||||
"<a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/>"
|
||||
"<span style=' font-size:12pt;'>Spark developers</span>"
|
||||
)
|
||||
);
|
||||
dialog.setDescription(
|
||||
QObject::tr(
|
||||
"<span style=' font-size:10pt;font-weight:60;'>An appstore powered by deepin community</span><br/>"
|
||||
"<a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/>"
|
||||
"<span style=' font-size:12pt;'>Spark developers</span>"
|
||||
)
|
||||
);
|
||||
dialog.setProductName(QLabel::tr("Spark Store"));
|
||||
dialog.setCompanyLogo(QPixmap(":/Logo-Spark.png"));
|
||||
dialog.setWebsiteName(QObject::tr("The Spark Project"));
|
||||
dialog.setWebsiteLink("https://gitee.com/deepin-community-store");
|
||||
|
||||
/* Ubuntu 上无法自定义 关于 对话框,暂时保留
|
||||
* a.setProductName(QLabel::tr("Spark Store"));
|
||||
* a.setProductIcon(QIcon::fromTheme("spark-store")); //设置Logo
|
||||
* a.setOrganizationName("spark-union");
|
||||
* a.setOrganizationDomain("https://www.deepinos.org/");
|
||||
* a.setApplicationName(QLabel::tr("Spark Store"));
|
||||
* a.setApplicationVersion(DApplication::buildVersion("2.0.2.5"));
|
||||
* a.setApplicationAcknowledgementPage("https://gitee.com/deepin-community-store/spark-store");
|
||||
* a.setApplicationDescription(
|
||||
* QObject::tr(
|
||||
* "<span style=' font-size:10pt;font-weight:60;'>An appstore powered by deepin community</span><br/>"
|
||||
* "<a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/>"
|
||||
* "<span style=' font-size:12pt;'>Spark developers</span>"
|
||||
* )
|
||||
* );
|
||||
*/
|
||||
|
||||
Widget w;
|
||||
QDesktopWidget *s=DApplication::desktop();
|
||||
int d_w=s->width();
|
||||
|
Loading…
x
Reference in New Issue
Block a user