VirtualBox

Changeset 79999 in vbox


Ignore:
Timestamp:
Jul 26, 2019 11:28:40 AM (6 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:7720: VM settings / System page: Wipe out leftovers of old heavily distributed across system page widgets related to boot-order editing functionality; Adjusting UIBootOrderEditor layout a bit.

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

Legend:

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

    r79998 r79999  
    597597    m_pBaseMemoryLabel->setEnabled(isMachineOffline());
    598598    m_pBaseMemoryEditor->setEnabled(isMachineOffline());
    599     m_pLabelBootOrder->setEnabled(isMachineOffline());
     599    m_pBootOrderLabel->setEnabled(isMachineOffline());
    600600    m_pBootOrderEditor->setEnabled(isMachineOffline());
    601601    m_pLabelChipsetType->setEnabled(isMachineOffline());
     
    728728        }
    729729
    730         /* Boot-order layout created in the .ui file. */
    731         AssertPtrReturnVoid(m_pLayoutBootOrder);
    732         {
    733             /* Configure layout: */
    734 #ifdef VBOX_WS_MAC
    735             /* We need a little space for the focus rect: */
    736             m_pLayoutBootOrder->setContentsMargins(3, 3, 3, 3);
    737             m_pLayoutBootOrder->setSpacing(3);
    738 #else
    739             m_pLayoutBootOrder->setSpacing(qApp->style()->pixelMetric(QStyle::PM_LayoutHorizontalSpacing) / 3);
    740 #endif
     730        /* Boot-order label and editor created in the .ui file. */
     731        AssertPtrReturnVoid(m_pBootOrderLabel);
     732        AssertPtrReturnVoid(m_pBootOrderEditor);
     733        {
     734            /* Configure label & editor: */
     735            m_pBootOrderLabel->setBuddy(m_pBootOrderEditor->focusProxy());
    741736        }
    742737
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.ui

    r79998 r79999  
    5656       </item>
    5757       <item row="2" column="0">
    58         <widget class="QLabel" name="m_pLabelBootOrder">
     58        <widget class="QLabel" name="m_pBootOrderLabel">
    5959         <property name="text">
    6060          <string>&amp;Boot Order:</string>
     
    6868        </widget>
    6969       </item>
    70        <item row="2" column="1" rowspan="2" colspan="2">
    71         <layout class="QHBoxLayout" name="m_pLayoutBootOrder">
    72          <property name="spacing">
    73           <number>1</number>
    74          </property>
    75          <item>
    76           <widget class="UIBootOrderEditor" name="m_pBootOrderEditor">
    77            <property name="sizePolicy">
    78             <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
    79              <horstretch>0</horstretch>
    80              <verstretch>0</verstretch>
    81             </sizepolicy>
    82            </property>
    83            <property name="whatsThis">
    84             <string>Defines the boot device order. Use the checkboxes on the left to enable or disable individual boot devices. Move items up and down to change the device order.</string>
    85            </property>
    86           </widget>
    87          </item>
    88          <item>
    89           <spacer name="m_pSpacerHorizontal2">
    90            <property name="orientation">
    91             <enum>Qt::Horizontal</enum>
    92            </property>
    93            <property name="sizeHint" stdset="0">
    94             <size>
    95              <width>0</width>
    96              <height>0</height>
    97             </size>
    98            </property>
    99           </spacer>
    100          </item>
    101         </layout>
    102        </item>
    103        <item row="4" column="0">
     70       <item row="2" column="1" rowspan="3" colspan="3">
     71        <widget class="UIBootOrderEditor" name="m_pBootOrderEditor">
     72         <property name="sizePolicy">
     73          <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
     74           <horstretch>0</horstretch>
     75           <verstretch>0</verstretch>
     76          </sizepolicy>
     77         </property>
     78         <property name="whatsThis">
     79          <string>Defines the boot device order. Use the checkboxes on the left to enable or disable individual boot devices. Move items up and down to change the device order.</string>
     80         </property>
     81        </widget>
     82       </item>
     83       <item row="5" column="0">
    10484        <widget class="QLabel" name="m_pLabelChipsetType">
    10585         <property name="text">
     
    11494        </widget>
    11595       </item>
    116        <item row="4" column="1" colspan="3">
     96       <item row="5" column="1" colspan="3">
    11797        <layout class="QHBoxLayout">
    11898         <item>
     
    144124        </layout>
    145125       </item>
    146        <item row="5" column="0">
     126       <item row="6" column="0">
    147127        <widget class="QLabel" name="m_pLabelPointingHIDType">
    148128         <property name="text">
     
    157137        </widget>
    158138       </item>
    159        <item row="5" column="1" colspan="3">
     139       <item row="6" column="1" colspan="3">
    160140        <layout class="QHBoxLayout">
    161141         <item>
     
    187167        </layout>
    188168       </item>
    189        <item row="6" column="0">
     169       <item row="7" column="0">
    190170        <widget class="QLabel" name="m_pLabelMotherboardExtended">
    191171         <property name="text">
     
    197177        </widget>
    198178       </item>
    199        <item row="6" column="1" colspan="3">
     179       <item row="7" column="1" colspan="3">
    200180        <widget class="QCheckBox" name="m_pCheckBoxApic">
    201181         <property name="whatsThis">
     
    207187        </widget>
    208188       </item>
    209        <item row="7" column="1" colspan="3">
     189       <item row="8" column="1" colspan="3">
    210190        <widget class="QCheckBox" name="m_pCheckBoxEFI">
    211191         <property name="whatsThis">
     
    217197        </widget>
    218198       </item>
    219        <item row="8" column="1" colspan="3">
     199       <item row="9" column="1" colspan="3">
    220200        <widget class="QCheckBox" name="m_pCheckBoxUseUTC" >
    221201         <property name="whatsThis" >
     
    227207        </widget>
    228208       </item>
    229        <item row="9" column="0" colspan="4">
     209       <item row="10" column="0" colspan="4">
    230210        <spacer name="m_pSpacerVertical2">
    231211         <property name="orientation">
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIBootOrderEditor.cpp

    r79982 r79999  
    508508            if (m_pTable)
    509509            {
     510                setFocusProxy(m_pTable);
    510511                if (m_pLabel)
    511512                    m_pLabel->setBuddy(m_pTable);
     
    539540
    540541            /* Add table layout to main layout: */
    541             pMainLayout->addLayout(pTableLayout, 0, iRow++, 2, 1);
     542            pMainLayout->addLayout(pTableLayout, 0, iRow++, 3, 1);
    542543        }
    543544    }
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