update:添加槽函数

This commit is contained in:
2025-09-21 22:45:12 +08:00
parent 95ee0f5381
commit 4d00b0bec8
2 changed files with 20 additions and 5 deletions

View File

@@ -24,9 +24,7 @@ public:
protected:
void closeEvent(QCloseEvent *event) override;
private slots:
// ⬅️ 声明一个槽函数它将接收来自Updater的信号
void handleUpdateFinished(bool success);
private:
Ui::MainWindow *ui;
void checkUpdates();
@@ -37,5 +35,8 @@ private:
QListView *listView; // 声明 QListView 指针
QJsonArray m_allApps; // 新增:保存所有应用数据
void filterAppsByKeyword(const QString &keyword); // 新增:搜索过滤函数声明
private slots:
void handleUpdateFinished(bool success); // 新增:处理更新完成的槽函数
};
#endif // MAINWINDOW_H
#endif // MAINWINDOW_H