Merge pull request #4286 from maximus105/master

Fix broken translation for ZIP drives
This commit is contained in:
Miran Grča
2024-03-20 23:46:07 +01:00
committed by GitHub

View File

@@ -140,8 +140,8 @@ SettingsOtherRemovable::SettingsOtherRemovable(QWidget *parent)
model = new QStandardItemModel(0, 2, this); model = new QStandardItemModel(0, 2, this);
ui->tableViewZIP->setModel(model); ui->tableViewZIP->setModel(model);
model->setHeaderData(0, Qt::Horizontal, "Bus"); model->setHeaderData(0, Qt::Horizontal, tr("Bus"));
model->setHeaderData(1, Qt::Horizontal, "Type"); model->setHeaderData(1, Qt::Horizontal, tr("Type"));
model->insertRows(0, ZIP_NUM); model->insertRows(0, ZIP_NUM);
for (int i = 0; i < ZIP_NUM; i++) { for (int i = 0; i < ZIP_NUM; i++) {
auto idx = model->index(i, 0); auto idx = model->index(i, 0);