VirtualBox

Changeset 47268 in vbox


Ignore:
Timestamp:
Jul 19, 2013 3:42:14 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
87398
Message:

FE/Qt: Machine settings: System page: Cleanup/rework (part 5): Some translation stuff.

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  
    552552    mLbCPUExecCapMin->setText(tr("<qt>%1%</qt>", "Min CPU execution cap in %").arg(m_uMinGuestCPUExecCap));
    553553    mLbCPUExecCapMax->setText(tr("<qt>%1%</qt>", "Max CPU execution cap in %").arg(m_uMaxGuestCPUExecCap));
     554
     555    /* Retranslate combo-box: */
     556    retranslateComboPointingChipsetType();
    554557}
    555558
     
    606609{
    607610    mSlCPUExecCap->setValue(strText.toInt());
     611}
     612
     613void 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    }
    608626}
    609627
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.h

    r47264 r47268  
    179179private:
    180180
     181    /* Helper: Translation stuff: */
     182    void retranslateComboPointingChipsetType();
     183
    181184    /* Handler: Polishing stuff: */
    182185    void polishPage();
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette