Changeset 17846 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Mar 13, 2009 4:10:52 PM (16 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsNetworkDetails.cpp
r17819 r17846 58 58 connect (mCbHOI, SIGNAL (currentIndexChanged (int)), 59 59 this, SLOT (hostOnlyInterfaceChanged())); 60 connect (mRbAuto, SIGNAL (toggled (bool)),61 this, SLOT (hostOnlyDHCPChanged()));62 connect (mRbManual, SIGNAL (toggled (bool)),63 this, SLOT (hostOnlyDHCPChanged()));64 populateComboboxes();65 60 #if defined (Q_WS_WIN32) 66 61 mTbAdd->setIcon (VBoxGlobal::iconSet (":/add_host_iface_16px.png", … … 70 65 connect (mTbAdd, SIGNAL (clicked()), this, SLOT (addInterface())); 71 66 connect (mTbDel, SIGNAL (clicked()), this, SLOT (delInterface())); 67 connect (mRbAuto, SIGNAL (toggled (bool)), 68 this, SLOT (hostOnlyDHCPChanged())); 69 connect (mRbManual, SIGNAL (toggled (bool)), 70 this, SLOT (hostOnlyDHCPChanged())); 72 71 #endif 73 72 … … 109 108 setProperty ("HOI_Name", QVariant (ifsName)); 110 109 setProperty ("HOI_DhcpEnabled", QVariant (ifs.GetDhcpEnabled())); 110 #if defined (Q_WS_WIN32) 111 111 setProperty ("HOI_IPv6Supported", QVariant (ifs.GetIPV6Supported())); 112 #endif 112 113 if (!ifs.GetDhcpEnabled()) 113 114 { … … 188 189 mLbHOI->setVisible (mType == KNetworkAttachmentType_HostOnly); 189 190 mCbHOI->setVisible (mType == KNetworkAttachmentType_HostOnly); 190 mLbCT->setVisible (mType == KNetworkAttachmentType_HostOnly);191 mRbAuto->setVisible (mType == KNetworkAttachmentType_HostOnly);192 mRbManual->setVisible (mType == KNetworkAttachmentType_HostOnly);193 191 mLbIPv4->setVisible (mType == KNetworkAttachmentType_HostOnly); 194 192 mLeIPv4->setVisible (mType == KNetworkAttachmentType_HostOnly); … … 202 200 mTbAdd->setVisible (mType == KNetworkAttachmentType_HostOnly); 203 201 mTbDel->setVisible (mType == KNetworkAttachmentType_HostOnly); 202 mLbCT->setVisible (mType == KNetworkAttachmentType_HostOnly); 203 mRbAuto->setVisible (mType == KNetworkAttachmentType_HostOnly); 204 mRbManual->setVisible (mType == KNetworkAttachmentType_HostOnly); 204 205 #endif 205 206 … … 411 412 void VBoxVMSettingsNetworkDetails::hostOnlyInterfaceChanged() 412 413 { 414 #if defined (Q_WS_WIN32) 413 415 CHostNetworkInterface iface = 414 416 vboxGlobal().virtualBox().GetHost().FindHostNetworkInterfaceByName (mCbHOI->currentText()); … … 434 436 mRbAuto->blockSignals (false); 435 437 } 436 hostOnlyDHCPChanged(); 437 438 #if defined (Q_WS_WIN32) 438 439 439 mTbDel->setEnabled (isValid); 440 440 #endif 441 442 hostOnlyDHCPChanged(); 441 443 } 442 444 -
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsNetworkDetails.ui
r17819 r17846 136 136 <item row="4" column="1" > 137 137 <widget class="QLabel" name="mLbCT" > 138 <property name="visible" > 139 <bool>false</bool> 140 </property> 138 141 <property name="text" > 139 142 <string>Configuration Type:</string> … … 146 149 <item row="4" column="2" colspan="3" > 147 150 <widget class="QRadioButton" name="mRbAuto" > 151 <property name="visible" > 152 <bool>false</bool> 153 </property> 148 154 <property name="toolTip" > 149 155 <string>Use DHCP automatic configuration for this host-only network interface.</string> … … 156 162 <item row="5" column="2" colspan="3" > 157 163 <widget class="QRadioButton" name="mRbManual" > 164 <property name="visible" > 165 <bool>false</bool> 166 </property> 167 <property name="checked" > 168 <bool>true</bool> 169 </property> 158 170 <property name="toolTip" > 159 171 <string>Use manual configuration for this host-only network interface.</string> … … 269 281 </item> 270 282 <item row="10" column="0" colspan="5" > 271 <widget class="QILabelSeparator" name="mLs Host" >283 <widget class="QILabelSeparator" name="mLsGuest" > 272 284 <property name="sizePolicy" > 273 285 <sizepolicy vsizetype="Preferred" hsizetype="MinimumExpanding" >
Note:
See TracChangeset
for help on using the changeset viewer.