VirtualBox

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


Ignore:
Timestamp:
Jul 16, 2013 1:58:05 PM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: Global properties: Network page: Fixing MacOS X layout bug.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetwork.cpp

    r45358 r47191  
    509509    /* Get current item: */
    510510    UIHostInterfaceItem *pItem = static_cast<UIHostInterfaceItem*>(m_pInterfacesTree->currentItem());
    511     /* Set the final label text: */
    512     m_pInfoLabel->setText(pItem ? pItem->updateInfo() : QString());
    513511    /* Update availability: */
    514512    m_pDelAction->setEnabled(pItem);
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetwork.h

    r44528 r47191  
    9292    UIHostInterfaceItem();
    9393
    94     /* Get/return data to/form items: */
     94    /* API: Get/return data to/form items: */
    9595    void fetchNetworkData(const UIHostNetworkData &data);
    9696    void uploadNetworkData(UIHostNetworkData &data);
    9797
    98     /* Validation stuff: */
     98    /* API: Validation stuff: */
    9999    bool revalidate(QString &strWarning, QString &strTitle);
    100100
    101     /* Helpers: */
     101    /* API: Update stuff: */
    102102    QString updateInfo();
    103103
    104     /* Network item getters: */
     104    /* API: Network item getters: */
    105105    QString name() const { return m_data.m_interface.m_strName; }
    106106    bool isDhcpClientEnabled() const { return m_data.m_interface.m_fDhcpClientEnabled; }
     
    117117    QString dhcpUpperAddress() const { return m_data.m_dhcpserver.m_strDhcpUpperAddress; }
    118118
    119     /* Network item setters */
     119    /* API: Network item setters */
    120120    void setDhcpClientEnabled(bool fEnabled) { m_data.m_interface.m_fDhcpClientEnabled = fEnabled; }
    121121    void setInterfaceAddress (const QString &strValue) { m_data.m_interface.m_strInterfaceAddress = strValue; }
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetwork.ui

    r45219 r47191  
    33 VBox frontends: Qt4 GUI ("VirtualBox"):
    44
    5  Copyright (C) 2009-2012 Oracle Corporation
     5 Copyright (C) 2009-2013 Oracle Corporation
    66
    77 This file is part of VirtualBox Open Source Edition (OSE), as
     
    1515 <class>UIGlobalSettingsNetwork</class>
    1616 <widget class="QWidget" name="UIGlobalSettingsNetwork">
    17   <property name="geometry">
    18    <rect>
    19     <x>0</x>
    20     <y>0</y>
    21     <width>218</width>
    22     <height>216</height>
    23    </rect>
    24   </property>
    2517  <layout class="QGridLayout">
    2618   <property name="margin">
     
    2820   </property>
    2921   <item row="0" column="0">
    30     <spacer>
    31      <property name="orientation">
    32       <enum>Qt::Horizontal</enum>
    33      </property>
    34      <property name="sizeType">
    35       <enum>QSizePolicy::Fixed</enum>
    36      </property>
    37      <property name="sizeHint" stdset="0">
    38       <size>
    39        <width>40</width>
    40        <height>20</height>
    41       </size>
    42      </property>
    43     </spacer>
    44    </item>
    45    <item row="0" column="1" colspan="2">
    46     <widget class="QLabel" name="m_pPageNameLabel">
     22    <widget class="QILabelSeparator" native="1" name="m_pLanguageLabel">
    4723     <property name="text">
    48       <string>&amp;Host-only Networks:</string>
     24     <string>&amp;Host-only Networks</string>
    4925     </property>
    5026     <property name="buddy">
     
    5329    </widget>
    5430   </item>
    55    <item row="1" column="2">
     31   <item row="1" column="0">
    5632    <widget class="QWidget" native="1" name="m_pNetworkSettingsContainer" >
    5733     <layout class="QHBoxLayout" name="m_pLayout1">
     
    6541       <widget class="QTreeWidget" name="m_pInterfacesTree">
    6642        <property name="sizePolicy">
    67          <sizepolicy hsizetype="Expanding" vsizetype="Expanding">
     43         <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding">
    6844          <horstretch>0</horstretch>
    6945          <verstretch>0</verstretch>
     
    9571    </widget>
    9672   </item>
    97    <item row="1" column="1">
    98     <spacer>
    99      <property name="orientation">
    100       <enum>Qt::Horizontal</enum>
    101      </property>
    102      <property name="sizeType">
    103       <enum>QSizePolicy::Fixed</enum>
    104      </property>
    105      <property name="sizeHint" stdset="0">
    106       <size>
    107        <width>20</width>
    108        <height>0</height>
    109       </size>
    110      </property>
    111     </spacer>
    112    </item>
    113    <item row="2" column="2">
    114     <widget class="QLabel" name="m_pInfoLabel">
    115      <property name="sizePolicy">
    116       <sizepolicy hsizetype="Expanding" vsizetype="Minimum">
    117        <horstretch>0</horstretch>
    118        <verstretch>0</verstretch>
    119       </sizepolicy>
    120      </property>
    121      <property name="alignment">
    122       <set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
    123      </property>
    124      <property name="wordWrap">
    125       <bool>true</bool>
    126      </property>
    127     </widget>
    128    </item>
    12973  </layout>
    13074 </widget>
    13175 <customwidgets>
     76  <customwidget>
     77   <class>QILabelSeparator</class>
     78   <extends>QLabel</extends>
     79   <header>QILabelSeparator.h</header>
     80  </customwidget>
    13281  <customwidget>
    13382   <class>UIToolBar</class>
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