VirtualBox

Changeset 27591 in vbox


Ignore:
Timestamp:
Mar 22, 2010 1:56:29 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
59121
Message:

FE/Qt4: 4691: Hide hardware acceleration options when none are available.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
3 edited

Legend:

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

    r27427 r27591  
    19221922        CBIOSSettings biosSettings = aMachine.GetBIOSSettings();
    19231923
     1924        /* System details row count: */
     1925        int iRowCount = 2; /* Memory & CPU details rows initially. */
     1926
    19241927        /* Boot order */
    19251928        QString bootOrder;
     
    19361939            bootOrder = toString (KDeviceType_Null);
    19371940
     1941        iRowCount += 1; /* Boot-order row. */
     1942
    19381943#ifdef VBOX_WITH_FULL_DETAILS_REPORT
    19391944        /* ACPI */
     
    19511956            ? tr ("Enabled", "details report (PAE/NX)")
    19521957            : tr ("Disabled", "details report (PAE/NX)");
     1958
     1959        iRowCount += 3; /* Full report rows. */
    19531960#endif /* VBOX_WITH_FULL_DETAILS_REPORT */
    19541961
     
    19621969            ? tr ("Enabled", "details report (Nested Paging)")
    19631970            : tr ("Disabled", "details report (Nested Paging)");
     1971
     1972        /* VT-x/AMD-V availability: */
     1973        bool fVTxAMDVSupported = virtualBox().GetHost().GetProcessorFeature(KProcessorFeature_HWVirtEx);
     1974
     1975        if (fVTxAMDVSupported)
     1976            iRowCount += 2; /* VT-x/AMD-V items. */
    19641977
    19651978        QString item = QString (sSectionItemTpl2).arg (tr ("Base Memory", "details report"),
     
    19751988                     + QString (sSectionItemTpl2).arg (tr ("PAE/NX", "details report"), pae)
    19761989#endif /* VBOX_WITH_FULL_DETAILS_REPORT */
    1977                      + QString (sSectionItemTpl2).arg (tr ("VT-x/AMD-V", "details report"), virt)
    1978                      + QString (sSectionItemTpl2).arg (tr ("Nested Paging", "details report"), nested)
    19791990                     ;
    19801991
     1992        if (fVTxAMDVSupported)
     1993                item += QString (sSectionItemTpl2).arg (tr ("VT-x/AMD-V", "details report"), virt)
     1994                     +  QString (sSectionItemTpl2).arg (tr ("Nested Paging", "details report"), nested);
     1995
    19811996        report += sectionTpl
    1982 #ifdef VBOX_WITH_FULL_DETAILS_REPORT
    1983                   .arg (2 + 8) /* rows */
    1984 #else
    1985                   .arg (2 + 5) /* rows */
    1986 #endif /* VBOX_WITH_FULL_DETAILS_REPORT */
     1997                  .arg (2 + iRowCount) /* rows */
    19871998                  .arg (":/chipset_16px.png", /* icon */
    19881999                        "#system", /* link */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/vm/VBoxVMSettingsSystem.cpp

    r27537 r27591  
    188188    mCbPae->setChecked (aMachine.GetCPUProperty(KCPUPropertyType_PAE));
    189189
     190    /* VT-x/AMD-V page */
     191    if (!fVTxAMDVSupported)
     192        mTwSystem->removeTab(2);
     193
    190194    /* VT-x/AMD-V */
    191195    mCbVirt->setEnabled (fVTxAMDVSupported);
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/vm/VBoxVMSettingsSystem.ui

    r25686 r27591  
    406406          <widget class="QIAdvancedSlider" name="mSlCPU">
    407407           <property name="whatsThis">
    408             <string>Controls the number of virtual CPUs in the virtual machine.</string>
     408            <string>Controls the number of virtual CPUs in the virtual machine. You need hardware virtualization support on your host system to use more than one virtual CPU.</string>
    409409           </property>
    410410           <property name="maximum">
     
    479479         </property>
    480480         <property name="whatsThis">
    481           <string>Controls the number of virtual CPUs in the virtual machine.</string>
     481          <string>Controls the number of virtual CPUs in the virtual machine. You need hardware virtualization support on your host system to use more than one virtual CPU.</string>
    482482         </property>
    483483        </widget>
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