VirtualBox

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


Ignore:
Timestamp:
Jun 18, 2013 4:24:28 PM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: Machine settings: Audio page: Cleanup (part 3).

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

Legend:

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

    r44528 r46630  
    195195void UIMachineSettingsAudio::polishPage()
    196196{
    197     mGbAudio->setEnabled(isMachineOffline());
    198     mLbAudioDriver->setEnabled(isMachineOffline());
    199     mCbAudioDriver->setEnabled(isMachineOffline());
    200     mLbAudioController->setEnabled(isMachineOffline());
    201     mCbAudioController->setEnabled(isMachineOffline());
    202 }
    203 
     197    setEnabled(isMachineOffline());
     198    mAudioChild->setEnabled(mGbAudio->isChecked());
     199}
     200
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsAudio.ui

    r46629 r46630  
    2323     <property name="text">
    2424      <string>Enable &amp;Audio</string>
    25      </property>
    26      <property name="checked" >
    27       <bool>true</bool>
    2825     </property>
    2926    </widget>
     
    6663      <item row="0" column="1">
    6764       <widget class="QComboBox" name="mCbAudioDriver">
     65        <property name="sizePolicy">
     66         <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
     67          <horstretch>1</horstretch>
     68          <verstretch>0</verstretch>
     69         </sizepolicy>
     70        </property>
    6871        <property name="whatsThis">
    6972         <string>Controls the audio output driver. The &lt;b>Null Audio Driver&lt;/b> makes the guest see an audio card, however every access to it will be ignored.</string>
     
    8689      <item row="1" column="1">
    8790       <widget class="QComboBox" name="mCbAudioController">
     91        <property name="sizePolicy">
     92         <sizepolicy hsizetype="MinimumExpanding" vsizetype="Fixed">
     93          <horstretch>1</horstretch>
     94          <verstretch>0</verstretch>
     95         </sizepolicy>
     96        </property>
    8897        <property name="whatsThis">
    8998         <string>Selects the type of the virtual sound card. Depending on this value, VirtualBox will provide different audio hardware to the virtual machine.</string>
     
    94103    </widget>
    95104   </item>
    96    <item row="1" column="2">
    97     <spacer>
    98      <property name="orientation">
    99       <enum>Qt::Horizontal</enum>
    100      </property>
    101      <property name="sizeHint">
    102       <size>
    103        <width>40</width>
    104        <height>20</height>
    105       </size>
    106      </property>
    107     </spacer>
    108    </item>
    109    <item row="2" column="1">
     105   <item row="2" column="0" colspan="2">
    110106    <spacer>
    111107     <property name="orientation">
     
    129125   <receiver>mAudioChild</receiver>
    130126   <slot>setEnabled(bool)</slot>
    131    <hints>
    132     <hint type="sourcelabel">
    133      <x>111</x>
    134      <y>19</y>
    135     </hint>
    136     <hint type="destinationlabel">
    137      <x>124</x>
    138      <y>61</y>
    139     </hint>
    140    </hints>
    141127  </connection>
    142128 </connections>
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