VirtualBox

Changeset 20395 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jun 8, 2009 12:01:43 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4: Virtualization LED tool-tip updated with SMP information.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp

    r20200 r20395  
    21082108    {
    21092109        bool virtEnabled = cconsole.GetDebugger().GetHWVirtExEnabled();
    2110         bool nestEnabled = cconsole.GetDebugger().GetHWVirtExNestedPagingEnabled();
    2111 
    2112         QString tip (tr("<qt>Indicates the status of the hardware virtualization "
    2113                         "features used by this virtual machine:<br>"
    2114                         "<nobr><b>%1:</b>&nbsp;%2</nobr><br>"
    2115                         "<nobr><b>%3:</b>&nbsp;%4</nobr></qt>"));
    21162110        QString virtualization = virtEnabled ?
    21172111            VBoxGlobal::tr ("Enabled", "details report (VT-x/AMD-V)") :
    21182112            VBoxGlobal::tr ("Disabled", "details report (VT-x/AMD-V)");
     2113
     2114        bool nestEnabled = cconsole.GetDebugger().GetHWVirtExNestedPagingEnabled();
    21192115        QString nestedPaging = nestEnabled ?
    21202116            VBoxVMInformationDlg::tr ("Enabled", "nested paging") :
    21212117            VBoxVMInformationDlg::tr ("Disabled", "nested paging");
    21222118
    2123         mVirtLed->setToolTip (tip
    2124             .arg (VBoxGlobal::tr ("VT-x/AMD-V", "details report"), virtualization)
    2125             .arg (VBoxVMInformationDlg::tr ("Nested Paging"), nestedPaging));
    2126 
     2119        QString tip (tr ("Indicates the status of the hardware virtualization "
     2120                         "features used by this virtual machine:"
     2121                         "<br><nobr><b>%1:</b>&nbsp;%2</nobr>"
     2122                         "<br><nobr><b>%3:</b>&nbsp;%4</nobr>",
     2123                         "Virtualization Stuff LED")
     2124                         .arg (VBoxGlobal::tr ("VT-x/AMD-V", "details report"), virtualization)
     2125                         .arg (VBoxVMInformationDlg::tr ("Nested Paging"), nestedPaging));
     2126
     2127        int cpuCount = cconsole.GetMachine().GetCPUCount();
     2128        if (cpuCount > 1)
     2129            tip += tr ("<br><nobr><b>%1:</b>&nbsp;%2</nobr>", "Virtualization Stuff LED")
     2130                      .arg (VBoxGlobal::tr ("Processor(s)", "details report")).arg (cpuCount);
     2131
     2132        mVirtLed->setToolTip (tip);
    21272133        mVirtLed->setState (virtEnabled);
    21282134    }
Note: See TracChangeset for help on using the changeset viewer.

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