Changeset 34947 in vbox for trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.cpp
- Timestamp:
- Dec 10, 2010 1:14:00 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.cpp
r34946 r34947 36 36 #include <QTimer> 37 37 #include <QCommonStyle> 38 39 /* Type converters */40 VBoxDefs::MediumType typeToLocal (KDeviceType aType)41 {42 VBoxDefs::MediumType result = VBoxDefs::MediumType_Invalid;43 switch (aType)44 {45 case KDeviceType_HardDisk:46 result = VBoxDefs::MediumType_HardDisk;47 break;48 case KDeviceType_DVD:49 result = VBoxDefs::MediumType_DVD;50 break;51 case KDeviceType_Floppy:52 result = VBoxDefs::MediumType_Floppy;53 break;54 default:55 AssertMsgFailed (("Incorrect medium type!\n"));56 break;57 }58 return result;59 }60 61 38 62 39 QString compressText (const QString &aText) … … 2321 2298 break; 2322 2299 } 2323 m_pMediumIdHolder->setType( typeToLocal(device));2300 m_pMediumIdHolder->setType(vboxGlobal().mediumTypeToLocal(device)); 2324 2301 m_pMediumIdHolder->setId(mStorageModel->data(index, StorageModel::R_AttMediumId).toString()); 2325 2302
Note:
See TracChangeset
for help on using the changeset viewer.