Changeset 47268 in vbox
- Timestamp:
- Jul 19, 2013 3:42:14 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 87398
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/settings/machine
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.cpp
r47264 r47268 552 552 mLbCPUExecCapMin->setText(tr("<qt>%1%</qt>", "Min CPU execution cap in %").arg(m_uMinGuestCPUExecCap)); 553 553 mLbCPUExecCapMax->setText(tr("<qt>%1%</qt>", "Max CPU execution cap in %").arg(m_uMaxGuestCPUExecCap)); 554 555 /* Retranslate combo-box: */ 556 retranslateComboPointingChipsetType(); 554 557 } 555 558 … … 606 609 { 607 610 mSlCPUExecCap->setValue(strText.toInt()); 611 } 612 613 void UIMachineSettingsSystem::retranslateComboPointingChipsetType() 614 { 615 /* For each the element in KPointingHIDType enum: */ 616 for (int iIndex = (int)KChipsetType_Null; iIndex < (int)KChipsetType_Max; ++iIndex) 617 { 618 /* Cast to the corresponding type: */ 619 KChipsetType type = (KChipsetType)iIndex; 620 /* Look for the corresponding item: */ 621 int iCorrespondingIndex = mCbChipset->findData((int)type); 622 /* Re-translate corresponding item if it was found: */ 623 if (iCorrespondingIndex != -1) 624 mCbChipset->setItemText(iCorrespondingIndex, gpConverter->toString(type)); 625 } 608 626 } 609 627 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.h
r47264 r47268 179 179 private: 180 180 181 /* Helper: Translation stuff: */ 182 void retranslateComboPointingChipsetType(); 183 181 184 /* Handler: Polishing stuff: */ 182 185 void polishPage();
Note:
See TracChangeset
for help on using the changeset viewer.