mirror of
https://gitee.com/gfdgd-xi/deep-wine-runner
synced 2025-12-14 11:02:04 +08:00
新增图标
This commit is contained in:
1
Icon/deepin-wine-runner.svg
Executable file
1
Icon/deepin-wine-runner.svg
Executable file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 11 KiB |
@@ -7,5 +7,6 @@
|
|||||||
<file>Icon/MessageBox/dialog-ok.svg</file>
|
<file>Icon/MessageBox/dialog-ok.svg</file>
|
||||||
<file>Icon/MessageBox/dialog-question.svg</file>
|
<file>Icon/MessageBox/dialog-question.svg</file>
|
||||||
<file>Icon/MessageBox/dialog-warning.svg</file>
|
<file>Icon/MessageBox/dialog-warning.svg</file>
|
||||||
|
<file>Icon/deepin-wine-runner.svg</file>
|
||||||
</qresource>
|
</qresource>
|
||||||
</RCC>
|
</RCC>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ QT += core gui
|
|||||||
PKGCONFIG += dtkcore dtkgui dtkwidget
|
PKGCONFIG += dtkcore dtkgui dtkwidget
|
||||||
|
|
||||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
|
||||||
|
VERSION = 1.0.0
|
||||||
CONFIG += c++17 link_pkgconfig
|
CONFIG += c++17 link_pkgconfig
|
||||||
|
|
||||||
# You can make your code fail to compile if it uses deprecated APIs.
|
# You can make your code fail to compile if it uses deprecated APIs.
|
||||||
|
|||||||
1
deepin-wine-runner.svg
Executable file
1
deepin-wine-runner.svg
Executable file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 11 KiB |
13
main.cpp
13
main.cpp
@@ -5,6 +5,7 @@
|
|||||||
#include <DApplication>
|
#include <DApplication>
|
||||||
#include <DMessageBox>
|
#include <DMessageBox>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <DApplicationSettings>
|
||||||
using namespace Dtk::Widget;
|
using namespace Dtk::Widget;
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
@@ -20,9 +21,20 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
int fakeArgc = argc + 2;
|
int fakeArgc = argc + 2;
|
||||||
DApplication a(fakeArgc, fakeArgs.data());
|
DApplication a(fakeArgc, fakeArgs.data());
|
||||||
|
a.setApplicationLicense("GPLV3");
|
||||||
|
a.setOrganizationName("gfdgd_xi");
|
||||||
|
a.setApplicationName("deepin-wine-runner-aptss-installer");
|
||||||
|
a.setWindowIcon(QIcon(":/Icon/deepin-wine-runner.svg"));
|
||||||
|
a.setApplicationDescription("Wine运行器是一个能让Linux用户更加方便地运行Windows应用的程序。原版的 Wine 只能使用命令操作,且安装过程较为繁琐,对小白不友好。于是该运行器为了解决该痛点,内置了对Wine图形化的支持、Wine 安装器、微型应用商店、各种Wine工具、自制的Wine程序打包器、运行库安装工具等。");
|
||||||
|
a.setApplicationVersion("3.6.1");
|
||||||
|
a.setProductIcon(QIcon(":/Icon/deepin-wine-runner.svg"));
|
||||||
|
a.setProductName("aptss 安装器");
|
||||||
|
a.setApplicationHomePage("https://gitee.com/gfdgd-xi/deep-wine-runner");
|
||||||
|
//DApplication::setApplicationHomePage("https://gitee.com/gfdgd-xi/deep-wine-runner");
|
||||||
DApplication::setOrganizationName("gfdgd_xi");
|
DApplication::setOrganizationName("gfdgd_xi");
|
||||||
DApplication::setApplicationName("deepin-wine-runner-aptss-installer");
|
DApplication::setApplicationName("deepin-wine-runner-aptss-installer");
|
||||||
|
|
||||||
|
|
||||||
if(system("which aptss")){
|
if(system("which aptss")){
|
||||||
DMessageBox::information(NULL, "错误", "无法检测到 aptss\n请确保您已安装星火应用商店并更新至最新版本");
|
DMessageBox::information(NULL, "错误", "无法检测到 aptss\n请确保您已安装星火应用商店并更新至最新版本");
|
||||||
return 1;
|
return 1;
|
||||||
@@ -37,6 +49,7 @@ int main(int argc, char *argv[])
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
DApplicationSettings settings; // 定义 DApplicationSettings,自动保存主题设置
|
||||||
MainWindow w;
|
MainWindow w;
|
||||||
w.show();
|
w.show();
|
||||||
return a.exec();
|
return a.exec();
|
||||||
|
|||||||
@@ -13,6 +13,10 @@
|
|||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
<string>MainWindow</string>
|
<string>MainWindow</string>
|
||||||
</property>
|
</property>
|
||||||
|
<property name="windowIcon">
|
||||||
|
<iconset resource="Resources.qrc">
|
||||||
|
<normaloff>:/Icon/deepin-wine-runner.svg</normaloff>:/Icon/deepin-wine-runner.svg</iconset>
|
||||||
|
</property>
|
||||||
<widget class="QWidget" name="centralwidget">
|
<widget class="QWidget" name="centralwidget">
|
||||||
<layout class="QGridLayout" name="gridLayout">
|
<layout class="QGridLayout" name="gridLayout">
|
||||||
<item row="0" column="0">
|
<item row="0" column="0">
|
||||||
@@ -57,6 +61,8 @@
|
|||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<resources/>
|
<resources>
|
||||||
|
<include location="Resources.qrc"/>
|
||||||
|
</resources>
|
||||||
<connections/>
|
<connections/>
|
||||||
</ui>
|
</ui>
|
||||||
|
|||||||
Reference in New Issue
Block a user