mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-09-23 11:32: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
20
main.cpp
20
main.cpp
@ -19,7 +19,8 @@ int main(int argc, char *argv[])
|
|||||||
dialog.setVersion(DApplication::buildVersion("Version 2.0.2.5"));
|
dialog.setVersion(DApplication::buildVersion("Version 2.0.2.5"));
|
||||||
dialog.setProductIcon(QIcon::fromTheme("spark-store")); //设置Logo
|
dialog.setProductIcon(QIcon::fromTheme("spark-store")); //设置Logo
|
||||||
dialog.setProductName(QLabel::tr("Spark Store"));
|
dialog.setProductName(QLabel::tr("Spark Store"));
|
||||||
dialog.setDescription(QObject::tr(
|
dialog.setDescription(
|
||||||
|
QObject::tr(
|
||||||
"<span style=' font-size:10pt;font-weight:60;'>An appstore powered by deepin community</span><br/>"
|
"<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/>"
|
"<a href='https://www.spark-app.store/'>https://www.spark-app.store</a><br/>"
|
||||||
"<span style=' font-size:12pt;'>Spark developers</span>"
|
"<span style=' font-size:12pt;'>Spark developers</span>"
|
||||||
@ -30,6 +31,23 @@ int main(int argc, char *argv[])
|
|||||||
dialog.setWebsiteName(QObject::tr("The Spark Project"));
|
dialog.setWebsiteName(QObject::tr("The Spark Project"));
|
||||||
dialog.setWebsiteLink("https://gitee.com/deepin-community-store");
|
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;
|
Widget w;
|
||||||
QDesktopWidget *s=DApplication::desktop();
|
QDesktopWidget *s=DApplication::desktop();
|
||||||
int d_w=s->width();
|
int d_w=s->width();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user