VirtualBox

Ignore:
Timestamp:
Sep 1, 2008 10:23:45 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
35840
Message:

FE/Qt: Adapter/Port numbers now start from 1 in the UI to correspond to VBoxManage (NLS safe change).

Location:
trunk/src/VBox/Frontends/VirtualBox4/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxGlobal.cpp

    r11709 r11955  
    17961796                    item += QString (sSectionItemTpl)
    17971797                        .arg (tr ("Adapter %1", "details report (network)")
    1798                               .arg (adapter.GetSlot()))
     1798                              .arg (adapter.GetSlot() + 1))
    17991799                        .arg (attType);
    18001800                    ++ rows;
     
    18381838                    item += QString (sSectionItemTpl)
    18391839                        .arg (tr ("Port %1", "details report (serial ports)")
    1840                               .arg (port.GetSlot()))
     1840                              .arg (port.GetSlot() + 1))
    18411841                        .arg (data);
    18421842                    ++ rows;
     
    18741874                    item += QString (sSectionItemTpl)
    18751875                        .arg (tr ("Port %1", "details report (parallel ports)")
    1876                               .arg (port.GetSlot()))
     1876                              .arg (port.GetSlot() + 1))
    18771877                        .arg (data);
    18781878                    ++ rows;
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMSettingsNetwork.cpp

    r11871 r11955  
    177177    {
    178178        pageTitle = VBoxGlobal::tr ("Adapter %1", "network")
    179             .arg (mAdapter.GetSlot());
     179            .arg (QString ("&%1").arg (mAdapter.GetSlot() + 1));
    180180    }
    181181    return pageTitle;
     
    519519        mList->setCurrentItem (NULL);
    520520        mList->clearSelection();
    521 #endif 
     521#endif
    522522    }
    523523    else
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMSettingsParallel.cpp

    r10700 r11955  
    112112    if (!mPort.isNull())
    113113        pageTitle = QString (tr ("Port %1", "parallel ports"))
    114             .arg (mPort.GetSlot());
     114            .arg (QString ("&%1").arg (mPort.GetSlot() + 1));
    115115    return pageTitle;
    116116}
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMSettingsSerial.cpp

    r10699 r11955  
    126126    {
    127127        pageTitle = QString (tr ("Port %1", "serial ports"))
    128             .arg (mPort.GetSlot());
     128            .arg (QString ("&%1").arg (mPort.GetSlot() + 1));
    129129    }
    130130    return pageTitle;
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