mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-14 21:02:04 +08:00
update:引入QScreen
This commit is contained in:
@@ -23,7 +23,6 @@ AppDelegate::AppDelegate(QObject *parent)
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
connect(m_downloadManager, &DownloadManager::downloadProgress, this,
|
connect(m_downloadManager, &DownloadManager::downloadProgress, this,
|
||||||
[this](const QString &packageName, int progress) {
|
[this](const QString &packageName, int progress) {
|
||||||
if (m_downloads.contains(packageName)) {
|
if (m_downloads.contains(packageName)) {
|
||||||
@@ -290,7 +289,6 @@ void AppDelegate::startNextInstall() {
|
|||||||
m_installingPackage.clear();
|
m_installingPackage.clear();
|
||||||
startNextInstall();
|
startNextInstall();
|
||||||
});
|
});
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// 日志文件无法打开时,仍然要连接原有信号
|
// 日志文件无法打开时,仍然要连接原有信号
|
||||||
connect(m_installProcess, &QProcess::readyReadStandardOutput, this, [this, packageName]() {
|
connect(m_installProcess, &QProcess::readyReadStandardOutput, this, [this, packageName]() {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
#include "appdelegate.h"
|
#include "appdelegate.h"
|
||||||
#include <QListView>
|
#include <QListView>
|
||||||
#include <QJsonArray> // 添加头文件
|
#include <QJsonArray> // 添加头文件
|
||||||
|
#include <QScreen>
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
namespace Ui {
|
namespace Ui {
|
||||||
class MainWindow;
|
class MainWindow;
|
||||||
|
|||||||
Reference in New Issue
Block a user