Changeset 93987 in vbox for trunk/src/VBox
- Timestamp:
- Feb 28, 2022 2:54:47 PM (3 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.cpp
r93460 r93987 475 475 enmOptType = OptType_VMRunner; 476 476 if (++i < argc) 477 m_uFloppyImage = arguments.at(i);477 m_uFloppyImage = QUuid(arguments.at(i)); 478 478 } 479 479 else if (!::strcmp(arg, "--dvd") || !::strcmp(arg, "--cdrom")) … … 481 481 enmOptType = OptType_VMRunner; 482 482 if (++i < argc) 483 m_uDvdImage = arguments.at(i);483 m_uDvdImage = QUuid(arguments.at(i)); 484 484 } 485 485 /* VMM Options: */ … … 591 591 { 592 592 if (machine.isNull() && showStartVMErrors()) 593 return msgCenter().cannotFindMachineById(m_comVBox, vmNameOrUuid);593 return msgCenter().cannotFindMachineById(m_comVBox, uuid); 594 594 } 595 595 else … … 1916 1916 /* Use medium ID which was passed: */ 1917 1917 else if (!target.data.isNull() && target.data != uCurrentID.toString()) 1918 uNewID = target.data;1918 uNewID = QUuid(target.data); 1919 1919 1920 1920 /* Should we mount or unmount? */ -
trunk/src/VBox/Frontends/VirtualBox/src/medium/viso/UIVisoCreator.cpp
r93115 r93987 521 521 522 522 if (!pVisoCreator) 523 return Q String();523 return QUuid(); 524 524 windowManager().registerNewParent(pVisoCreator, pDialogParent); 525 525 pVisoCreator->setCurrentPath(gEDataManager->visoCreatorRecentFolder()); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsStorage.cpp
r93829 r93987 3220 3220 newAttachmentData.m_fNonRotational = m_pModelStorage->data(attachmentIndex, StorageModel::R_AttIsNonRotational).toBool(); 3221 3221 newAttachmentData.m_fHotPluggable = m_pModelStorage->data(attachmentIndex, StorageModel::R_AttIsHotPluggable).toBool(); 3222 newAttachmentData.m_uMediumId = m_pModelStorage->data(attachmentIndex, StorageModel::R_AttMediumId).toString();3222 newAttachmentData.m_uMediumId = QUuid(m_pModelStorage->data(attachmentIndex, StorageModel::R_AttMediumId).toString()); 3223 3223 const QString strAttachmentKey = QString("%1:%2").arg(newAttachmentData.m_iPort).arg(newAttachmentData.m_iDevice); 3224 3224 … … 3291 3291 const QString value(QString("%1 (%2)").arg(ctrName, gpConverter->toString(attSlot))); 3292 3292 /* Check for emptiness: */ 3293 if (uiCommon().medium( key).isNull() && enmDeviceType == KDeviceType_HardDisk)3293 if (uiCommon().medium(QUuid(key)).isNull() && enmDeviceType == KDeviceType_HardDisk) 3294 3294 { 3295 3295 message.second << tr("No hard disk is selected for <i>%1</i>.").arg(value); … … 3297 3297 } 3298 3298 /* Check for coincidence: */ 3299 if (!uiCommon().medium( key).isNull() && config.contains(key) && enmDeviceType != KDeviceType_DVD)3299 if (!uiCommon().medium(QUuid(key)).isNull() && config.contains(key) && enmDeviceType != KDeviceType_DVD) 3300 3300 { 3301 3301 message.second << tr("<i>%1</i> is using a disk that is already attached to <i>%2</i>.") … … 3501 3501 { 3502 3502 const QModelIndex attachmentIndex = m_pModelStorage->index(j, 0, controllerIndex); 3503 const QUuid attMediumId = m_pModelStorage->data(attachmentIndex, StorageModel::R_AttMediumId).toString();3503 const QUuid attMediumId(m_pModelStorage->data(attachmentIndex, StorageModel::R_AttMediumId).toString()); 3504 3504 if (attMediumId == medium.id()) 3505 3505 { … … 3522 3522 { 3523 3523 QModelIndex attachmentIndex = m_pModelStorage->index(j, 0, controllerIndex); 3524 QUuid attMediumId = m_pModelStorage->data(attachmentIndex, StorageModel::R_AttMediumId).toString();3524 QUuid attMediumId(m_pModelStorage->data(attachmentIndex, StorageModel::R_AttMediumId).toString()); 3525 3525 if (attMediumId == uMediumId) 3526 3526 { … … 3805 3805 /* Fetch device-type, medium-id: */ 3806 3806 m_pMediumIdHolder->setType(mediumTypeToLocal(enmDeviceType)); 3807 m_pMediumIdHolder->setId( m_pModelStorage->data(index, StorageModel::R_AttMediumId).toString());3807 m_pMediumIdHolder->setId(QUuid(m_pModelStorage->data(index, StorageModel::R_AttMediumId).toString())); 3808 3808 3809 3809 /* Get/fetch editable state: */ … … 4043 4043 AssertMsg(pChooseHostDriveAction, ("Can't access choose-host-drive action!\n")); 4044 4044 if (pChooseHostDriveAction) 4045 m_pMediumIdHolder->setId( pChooseHostDriveAction->data().toString());4045 m_pMediumIdHolder->setId(QUuid(pChooseHostDriveAction->data().toString())); 4046 4046 } 4047 4047 … … 4458 4458 /* Then make sure we support such attachment device type: */ 4459 4459 const DeviceTypeList devicesList(m_pModelStorage->data(index, StorageModel::R_CtrDevices).value<DeviceTypeList>()); 4460 if (!devicesList.contains(m_pModelStorage->attachmentDeviceType( strControllerId, strAttachmentId)))4460 if (!devicesList.contains(m_pModelStorage->attachmentDeviceType(QUuid(strControllerId), QUuid(strAttachmentId)))) 4461 4461 return; 4462 4462 /* Also make sure there is enough place for new attachment: */ … … 4487 4487 const QString strControllerId = pMimeData->data(UIMachineSettingsStorage::s_strControllerMimeType); 4488 4488 const QString strAttachmentId = pMimeData->data(UIMachineSettingsStorage::s_strAttachmentMimeType); 4489 m_pModelStorage->moveAttachment( strAttachmentId, strControllerId, pItemController->id());4489 m_pModelStorage->moveAttachment(QUuid(strAttachmentId), QUuid(strControllerId), pItemController->id()); 4490 4490 } 4491 4491 } -
trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.cpp
r93985 r93987 3303 3303 physicalLayout.setName(m_xmlReader.readElementText()); 3304 3304 else if (m_xmlReader.name() == QLatin1String("id")) 3305 physicalLayout.setUid( m_xmlReader.readElementText());3305 physicalLayout.setUid(QUuid(m_xmlReader.readElementText())); 3306 3306 else 3307 3307 m_xmlReader.skipCurrentElement(); -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UITabBar.cpp
r93115 r93987 937 937 const QUuid tokenUuid = m_pItemToken->uuid(); 938 938 /* Determine ID of dropped-item: */ 939 const QUuid droppedUuid = pMimeData->data(UITabBarItem::MimeType);939 const QUuid droppedUuid(pMimeData->data(UITabBarItem::MimeType)); 940 940 941 941 /* Make sure these uuids are different: */
Note:
See TracChangeset
for help on using the changeset viewer.