VirtualBox

Ignore:
Timestamp:
Jan 10, 2020 11:08:35 AM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: UIMachineSettingsDisplay: Hide 2D Video Acceleration checkbox for non-suitable video controller types.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.cpp

    r82436 r82710  
    875875    /* Update Video RAM requirements: */
    876876    m_pVideoMemoryEditor->setGraphicsControllerType(m_pGraphicsControllerEditor->value());
     877#ifdef VBOX_WITH_VIDEOHWACCEL
     878    m_pLayout2DVideo->setCurrentWidget(  graphicsControllerTypeCurrent() == KGraphicsControllerType_VBoxVGA
     879                                       ? m_pCheckbox2DVideo
     880                                       : m_pPlaceholder2DVideo);
     881#endif
    877882
    878883    /* Revalidate: */
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsDisplay.ui

    r80068 r82710  
    159159          </item>
    160160          <item row="7" column="1">
    161            <widget class="QCheckBox" name="m_pCheckbox3D">
    162             <property name="sizePolicy">
    163              <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
    164               <horstretch>0</horstretch>
    165               <verstretch>0</verstretch>
    166              </sizepolicy>
    167             </property>
    168             <property name="whatsThis">
    169              <string>When checked, the virtual machine will be given access to the 3D graphics capabilities available on the host.</string>
    170             </property>
    171             <property name="text">
    172              <string>Enable &amp;3D Acceleration</string>
    173             </property>
    174            </widget>
     161           <layout class="QStackedLayout" name="m_pLayout3D">
     162            <item>
     163             <widget class="QCheckBox" name="m_pCheckbox3D">
     164              <property name="sizePolicy">
     165               <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
     166                <horstretch>0</horstretch>
     167                <verstretch>0</verstretch>
     168               </sizepolicy>
     169              </property>
     170              <property name="whatsThis">
     171               <string>When checked, the virtual machine will be given access to the 3D graphics capabilities available on the host.</string>
     172              </property>
     173              <property name="text">
     174               <string>Enable &amp;3D Acceleration</string>
     175              </property>
     176             </widget>
     177            </item>
     178            <item>
     179             <widget class="QWidget" name="m_pPlaceholder3D"/>
     180            </item>
     181           </layout>
    175182          </item>
    176183          <item row="8" column="1">
    177            <widget class="QCheckBox" name="m_pCheckbox2DVideo">
    178             <property name="sizePolicy">
    179              <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
    180               <horstretch>0</horstretch>
    181               <verstretch>0</verstretch>
    182              </sizepolicy>
    183             </property>
    184             <property name="whatsThis">
    185              <string>When checked, the virtual machine will be given access to the Video Acceleration capabilities available on the host.</string>
    186             </property>
    187             <property name="text">
    188              <string>Enable &amp;2D Video Acceleration</string>
    189             </property>
    190            </widget>
     184           <layout class="QStackedLayout" name="m_pLayout2DVideo">
     185            <item>
     186             <widget class="QCheckBox" name="m_pCheckbox2DVideo">
     187              <property name="sizePolicy">
     188               <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
     189                <horstretch>0</horstretch>
     190                <verstretch>0</verstretch>
     191               </sizepolicy>
     192              </property>
     193              <property name="whatsThis">
     194               <string>When checked, the virtual machine will be given access to the Video Acceleration capabilities available on the host.</string>
     195              </property>
     196              <property name="text">
     197               <string>Enable &amp;2D Video Acceleration</string>
     198              </property>
     199             </widget>
     200            </item>
     201            <item>
     202             <widget class="QWidget" name="m_pPlaceholder2DVideo"/>
     203            </item>
     204           </layout>
    191205          </item>
    192206         </layout>
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