Changeset 47191 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Jul 16, 2013 1:58:05 PM (11 years ago)
- 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 509 509 /* Get current item: */ 510 510 UIHostInterfaceItem *pItem = static_cast<UIHostInterfaceItem*>(m_pInterfacesTree->currentItem()); 511 /* Set the final label text: */512 m_pInfoLabel->setText(pItem ? pItem->updateInfo() : QString());513 511 /* Update availability: */ 514 512 m_pDelAction->setEnabled(pItem); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetwork.h
r44528 r47191 92 92 UIHostInterfaceItem(); 93 93 94 /* Get/return data to/form items: */94 /* API: Get/return data to/form items: */ 95 95 void fetchNetworkData(const UIHostNetworkData &data); 96 96 void uploadNetworkData(UIHostNetworkData &data); 97 97 98 /* Validation stuff: */98 /* API: Validation stuff: */ 99 99 bool revalidate(QString &strWarning, QString &strTitle); 100 100 101 /* Helpers: */101 /* API: Update stuff: */ 102 102 QString updateInfo(); 103 103 104 /* Network item getters: */104 /* API: Network item getters: */ 105 105 QString name() const { return m_data.m_interface.m_strName; } 106 106 bool isDhcpClientEnabled() const { return m_data.m_interface.m_fDhcpClientEnabled; } … … 117 117 QString dhcpUpperAddress() const { return m_data.m_dhcpserver.m_strDhcpUpperAddress; } 118 118 119 /* Network item setters */119 /* API: Network item setters */ 120 120 void setDhcpClientEnabled(bool fEnabled) { m_data.m_interface.m_fDhcpClientEnabled = fEnabled; } 121 121 void setInterfaceAddress (const QString &strValue) { m_data.m_interface.m_strInterfaceAddress = strValue; } -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetwork.ui
r45219 r47191 3 3 VBox frontends: Qt4 GUI ("VirtualBox"): 4 4 5 Copyright (C) 2009-201 2Oracle Corporation5 Copyright (C) 2009-2013 Oracle Corporation 6 6 7 7 This file is part of VirtualBox Open Source Edition (OSE), as … … 15 15 <class>UIGlobalSettingsNetwork</class> 16 16 <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>25 17 <layout class="QGridLayout"> 26 18 <property name="margin"> … … 28 20 </property> 29 21 <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"> 47 23 <property name="text"> 48 <string>&Host-only Networks:</string>24 <string>&Host-only Networks</string> 49 25 </property> 50 26 <property name="buddy"> … … 53 29 </widget> 54 30 </item> 55 <item row="1" column=" 2">31 <item row="1" column="0"> 56 32 <widget class="QWidget" native="1" name="m_pNetworkSettingsContainer" > 57 33 <layout class="QHBoxLayout" name="m_pLayout1"> … … 65 41 <widget class="QTreeWidget" name="m_pInterfacesTree"> 66 42 <property name="sizePolicy"> 67 <sizepolicy hsizetype=" Expanding" vsizetype="Expanding">43 <sizepolicy hsizetype="MinimumExpanding" vsizetype="MinimumExpanding"> 68 44 <horstretch>0</horstretch> 69 45 <verstretch>0</verstretch> … … 95 71 </widget> 96 72 </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>129 73 </layout> 130 74 </widget> 131 75 <customwidgets> 76 <customwidget> 77 <class>QILabelSeparator</class> 78 <extends>QLabel</extends> 79 <header>QILabelSeparator.h</header> 80 </customwidget> 132 81 <customwidget> 133 82 <class>UIToolBar</class>
Note:
See TracChangeset
for help on using the changeset viewer.