update:完善搜索功能

This commit is contained in:
2025-07-06 20:14:51 +08:00
parent a79d76067e
commit 266be7146d
2 changed files with 30 additions and 0 deletions

View File

@@ -6,6 +6,7 @@
#include "applistmodel.h"
#include "appdelegate.h"
#include <QListView>
#include <QJsonArray> // 添加头文件
QT_BEGIN_NAMESPACE
namespace Ui {
@@ -29,5 +30,7 @@ private:
AppListModel *m_model;
AppDelegate *m_delegate;
QListView *listView; // 声明 QListView 指针
QJsonArray m_allApps; // 新增:保存所有应用数据
void filterAppsByKeyword(const QString &keyword); // 新增:搜索过滤函数声明
};
#endif // MAINWINDOW_H