Changeset 44365 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jan 25, 2013 10:24:45 AM (12 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMedium.cpp
r44113 r44365 142 142 mHardDiskFormat = mMedium.GetFormat(); 143 143 mHardDiskType = vboxGlobal().mediumTypeString (mMedium); 144 mStorageDetails = gpConverter->toString((KMediumVariant)mMedium.GetVariant()); 144 145 QVector<KMediumVariant> mediumVariants_QVector = mMedium.GetVariant(); 146 qlonglong mediumVariants_qlonglong = 0; 147 for (int i = 0; i < mediumVariants_QVector.size(); i++) 148 mediumVariants_qlonglong |= mediumVariants_QVector[i]; 149 150 mStorageDetails = gpConverter->toString((KMediumVariant)mediumVariants_qlonglong); 145 151 mIsReadOnly = mMedium.GetReadOnly(); 146 152 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevd/UIWizardCloneVD.cpp
r41587 r44365 71 71 } 72 72 73 QVector<KMediumVariant> l_variants(sizeof(uVariant)*8); 74 75 for (int i = 0; i < l_variants.size(); ++i) 76 { 77 qulonglong temp = uVariant; 78 l_variants [i] = (KMediumVariant)(temp & (1<<i)); 79 } 80 73 81 /* Copy existing virtual-disk to the new virtual-disk: */ 74 progress = sourceVirtualDisk.CloneTo(virtualDisk, uVariant, CMedium());82 progress = sourceVirtualDisk.CloneTo(virtualDisk, l_variants, CMedium()); 75 83 if (!virtualDisk.isOk()) 76 84 { -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvd/UIWizardNewVD.cpp
r41615 r44365 74 74 } 75 75 76 QVector<KMediumVariant> l_variants(sizeof(qulonglong)*8); 77 78 for (int i = 0; i < l_variants.size(); ++i) 79 { 80 qulonglong temp = uVariant; 81 l_variants [i] = (KMediumVariant)(temp & (1<<i)); 82 } 83 76 84 /* Create base storage for the new hard disk: */ 77 progress = virtualDisk.CreateBaseStorage(uSize, uVariant); 85 progress = virtualDisk.CreateBaseStorage(uSize, l_variants); 86 78 87 if (!virtualDisk.isOk()) 79 88 {
Note:
See TracChangeset
for help on using the changeset viewer.