qt: Temporarily hide the Mitsumi CD-ROM bus in dropdowns (#3639)
This commit is contained in:
committed by
GitHub
parent
932834995c
commit
0ba239d49a
@@ -49,16 +49,24 @@ void
|
|||||||
Harddrives::populateRemovableBuses(QAbstractItemModel *model)
|
Harddrives::populateRemovableBuses(QAbstractItemModel *model)
|
||||||
{
|
{
|
||||||
model->removeRows(0, model->rowCount());
|
model->removeRows(0, model->rowCount());
|
||||||
|
#if 0
|
||||||
model->insertRows(0, 4);
|
model->insertRows(0, 4);
|
||||||
|
#else
|
||||||
|
model->insertRows(0, 3);
|
||||||
|
#endif
|
||||||
model->setData(model->index(0, 0), QObject::tr("Disabled"));
|
model->setData(model->index(0, 0), QObject::tr("Disabled"));
|
||||||
model->setData(model->index(1, 0), QObject::tr("ATAPI"));
|
model->setData(model->index(1, 0), QObject::tr("ATAPI"));
|
||||||
model->setData(model->index(2, 0), QObject::tr("SCSI"));
|
model->setData(model->index(2, 0), QObject::tr("SCSI"));
|
||||||
|
#if 0
|
||||||
model->setData(model->index(3, 0), QObject::tr("Mitsumi"));
|
model->setData(model->index(3, 0), QObject::tr("Mitsumi"));
|
||||||
|
#endif
|
||||||
|
|
||||||
model->setData(model->index(0, 0), HDD_BUS_DISABLED, Qt::UserRole);
|
model->setData(model->index(0, 0), HDD_BUS_DISABLED, Qt::UserRole);
|
||||||
model->setData(model->index(1, 0), HDD_BUS_ATAPI, Qt::UserRole);
|
model->setData(model->index(1, 0), HDD_BUS_ATAPI, Qt::UserRole);
|
||||||
model->setData(model->index(2, 0), HDD_BUS_SCSI, Qt::UserRole);
|
model->setData(model->index(2, 0), HDD_BUS_SCSI, Qt::UserRole);
|
||||||
|
#if 0
|
||||||
model->setData(model->index(3, 0), CDROM_BUS_MITSUMI, Qt::UserRole);
|
model->setData(model->index(3, 0), CDROM_BUS_MITSUMI, Qt::UserRole);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Reference in New Issue
Block a user