实现从apt源读取数据并分类功能的功能

This commit is contained in:
2024-05-11 19:46:01 +08:00
parent bd51419f52
commit 3c88cc03f8
2 changed files with 14 additions and 7 deletions

View File

@@ -31,12 +31,13 @@ void MainWindow::RefreshKernelListView(KernelInformation *info, bool showLocalAr
int count = info->get_count();
QStandardItemModel *model = new QStandardItemModel();
model->setHorizontalHeaderLabels(QStringList() << tr("ID") << tr("Kernel Name") << tr("Author") << tr("Arch") << tr("Installed"));
const QString arch = info->arch();
int line = 0;
for(int i = 0; i < count; i++) {
// 显示所有架构
QString kernelArch = "";
bool isLocalArch = false;
const QString arch = info->arch();
for(QString i: info->get_arch(i)) {
if(i == arch) {
isLocalArch = true;