儲存庫 vbox 的更動 18381
- 時間撮記:
- 2009-3-27 上午11:10:51 (16 年 以前)
- 位置:
- trunk/src/VBox/Frontends/VirtualBox/src
- 檔案:
-
- 修改 2 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGLSettingsNetwork.cpp
r18325 r18381 126 126 QHostAddress (mInterfaceAddress).protocol() != QAbstractSocket::IPv4Protocol)) 127 127 { 128 aWarning = QTreeWidget::tr ("host IPv4 address of <b>%1</b> is wrong").arg (text (0));128 aWarning = VBoxGLSettingsNetwork::tr ("host IPv4 address of <b>%1</b> is wrong").arg (text (0)); 129 129 return false; 130 130 } … … 133 133 QHostAddress (mInterfaceMask).protocol() != QAbstractSocket::IPv4Protocol)) 134 134 { 135 aWarning = QTreeWidget::tr ("host IPv4 network mask of <b>%1</b> is wrong").arg (text (0));135 aWarning = VBoxGLSettingsNetwork::tr ("host IPv4 network mask of <b>%1</b> is wrong").arg (text (0)); 136 136 return false; 137 137 } … … 142 142 QHostAddress (mInterfaceAddress6).protocol() != QAbstractSocket::IPv6Protocol)) 143 143 { 144 aWarning = QTreeWidget::tr ("host IPv6 address of <b>%1</b> is wrong").arg (text (0));144 aWarning = VBoxGLSettingsNetwork::tr ("host IPv6 address of <b>%1</b> is wrong").arg (text (0)); 145 145 return false; 146 146 } … … 154 154 QHostAddress (mDhcpServerAddress).protocol() != QAbstractSocket::IPv4Protocol) 155 155 { 156 aWarning = QTreeWidget::tr ("DHCP server address of <b>%1</b> is wrong").arg (text (0));156 aWarning = VBoxGLSettingsNetwork::tr ("DHCP server address of <b>%1</b> is wrong").arg (text (0)); 157 157 return false; 158 158 } … … 160 160 QHostAddress (mDhcpServerMask).protocol() != QAbstractSocket::IPv4Protocol) 161 161 { 162 aWarning = QTreeWidget::tr ("DHCP server mask of <b>%1</b> is wrong").arg (text (0));162 aWarning = VBoxGLSettingsNetwork::tr ("DHCP server mask of <b>%1</b> is wrong").arg (text (0)); 163 163 return false; 164 164 } … … 166 166 QHostAddress (mDhcpLowerAddress).protocol() != QAbstractSocket::IPv4Protocol) 167 167 { 168 aWarning = QTreeWidget::tr ("DHCP lower address bound of <b>%1</b> is wrong").arg (text (0));168 aWarning = VBoxGLSettingsNetwork::tr ("DHCP lower address bound of <b>%1</b> is wrong").arg (text (0)); 169 169 return false; 170 170 } … … 172 172 QHostAddress (mDhcpUpperAddress).protocol() != QAbstractSocket::IPv4Protocol) 173 173 { 174 aWarning = QTreeWidget::tr ("DHCP upper address bound of <b>%1</b> is wrong").arg (text (0));174 aWarning = VBoxGLSettingsNetwork::tr ("DHCP upper address bound of <b>%1</b> is wrong").arg (text (0)); 175 175 return false; 176 176 } … … 189 189 190 190 /* Host-only Interface information */ 191 buffer = hdr.arg ( QTreeWidget::tr ("Host Interface"))192 .arg (mDhcpClientEnabled ? QTreeWidget::tr ("Automatically configured", "interface")193 : QTreeWidget::tr ("Manually configured", "interface"));191 buffer = hdr.arg (VBoxGLSettingsNetwork::tr ("Host Interface")) 192 .arg (mDhcpClientEnabled ? VBoxGLSettingsNetwork::tr ("Automatically configured", "interface") 193 : VBoxGLSettingsNetwork::tr ("Manually configured", "interface")); 194 194 data += buffer; 195 195 tip += buffer; … … 197 197 if (!mDhcpClientEnabled) 198 198 { 199 buffer = sub.arg ( QTreeWidget::tr ("IPv4 Address"))200 .arg (mInterfaceAddress.isEmpty() ? QTreeWidget::tr ("Not set", "address")199 buffer = sub.arg (VBoxGLSettingsNetwork::tr ("IPv4 Address")) 200 .arg (mInterfaceAddress.isEmpty() ? VBoxGLSettingsNetwork::tr ("Not set", "address") 201 201 : mInterfaceAddress) + 202 sub.arg ( QTreeWidget::tr ("IPv4 Mask"))203 .arg (mInterfaceMask.isEmpty() ? QTreeWidget::tr ("Not set", "mask")202 sub.arg (VBoxGLSettingsNetwork::tr ("IPv4 Mask")) 203 .arg (mInterfaceMask.isEmpty() ? VBoxGLSettingsNetwork::tr ("Not set", "mask") 204 204 : mInterfaceMask); 205 205 tip += buffer; … … 207 207 if (mIpv6Supported) 208 208 { 209 buffer = sub.arg ( QTreeWidget::tr ("IPv6 Address"))210 .arg (mInterfaceAddress6.isEmpty() ? QTreeWidget::tr ("Not set", "address")209 buffer = sub.arg (VBoxGLSettingsNetwork::tr ("IPv6 Address")) 210 .arg (mInterfaceAddress6.isEmpty() ? VBoxGLSettingsNetwork::tr ("Not set", "address") 211 211 : mInterfaceAddress6) + 212 sub.arg ( QTreeWidget::tr ("IPv6 Mask Length"))213 .arg (mInterfaceMaskLength6.isEmpty() ? QTreeWidget::tr ("Not set", "length")212 sub.arg (VBoxGLSettingsNetwork::tr ("IPv6 Mask Length")) 213 .arg (mInterfaceMaskLength6.isEmpty() ? VBoxGLSettingsNetwork::tr ("Not set", "length") 214 214 : mInterfaceMaskLength6); 215 215 tip += buffer; … … 218 218 219 219 /* DHCP Server information */ 220 buffer = hdr.arg ( QTreeWidget::tr ("DHCP Server"))221 .arg (mDhcpServerEnabled ? QTreeWidget::tr ("Enabled", "server")222 : QTreeWidget::tr ("Disabled", "server"));220 buffer = hdr.arg (VBoxGLSettingsNetwork::tr ("DHCP Server")) 221 .arg (mDhcpServerEnabled ? VBoxGLSettingsNetwork::tr ("Enabled", "server") 222 : VBoxGLSettingsNetwork::tr ("Disabled", "server")); 223 223 data += buffer; 224 224 tip += buffer; … … 226 226 if (mDhcpServerEnabled) 227 227 { 228 buffer = sub.arg ( QTreeWidget::tr ("Address"))229 .arg (mDhcpServerAddress.isEmpty() ? QTreeWidget::tr ("Not set", "address")228 buffer = sub.arg (VBoxGLSettingsNetwork::tr ("Address")) 229 .arg (mDhcpServerAddress.isEmpty() ? VBoxGLSettingsNetwork::tr ("Not set", "address") 230 230 : mDhcpServerAddress) + 231 sub.arg ( QTreeWidget::tr ("Mask"))232 .arg (mDhcpServerMask.isEmpty() ? QTreeWidget::tr ("Not set", "mask")231 sub.arg (VBoxGLSettingsNetwork::tr ("Mask")) 232 .arg (mDhcpServerMask.isEmpty() ? VBoxGLSettingsNetwork::tr ("Not set", "mask") 233 233 : mDhcpServerMask) + 234 sub.arg ( QTreeWidget::tr ("Lower Bound"))235 .arg (mDhcpLowerAddress.isEmpty() ? QTreeWidget::tr ("Not set", "bound")234 sub.arg (VBoxGLSettingsNetwork::tr ("Lower Bound")) 235 .arg (mDhcpLowerAddress.isEmpty() ? VBoxGLSettingsNetwork::tr ("Not set", "bound") 236 236 : mDhcpLowerAddress) + 237 sub.arg ( QTreeWidget::tr ("Upper Bound"))238 .arg (mDhcpUpperAddress.isEmpty() ? QTreeWidget::tr ("Not set", "bound")237 sub.arg (VBoxGLSettingsNetwork::tr ("Upper Bound")) 238 .arg (mDhcpUpperAddress.isEmpty() ? VBoxGLSettingsNetwork::tr ("Not set", "bound") 239 239 : mDhcpUpperAddress); 240 240 tip += buffer; -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsNetwork.cpp
r18235 r18381 189 189 QString name (mDetails->currentName (type)); 190 190 info += line.arg (tr ("Adapter", "network")) 191 .arg (name.isEmpty() ? tr (" not selected", "adapter") : name);191 .arg (name.isEmpty() ? tr ("Not selected", "adapter") : name); 192 192 break; 193 193 } … … 196 196 QString name (mDetails->currentName (type)); 197 197 info += line.arg (tr ("Network", "internal")) 198 .arg (name.isEmpty() ? tr (" not selected", "network") : name);198 .arg (name.isEmpty() ? tr ("Not selected", "network") : name); 199 199 break; 200 200 } … … 203 203 QString name (mDetails->currentName (type)); 204 204 info += line.arg (tr ("Interface", "network")) 205 .arg (name.isEmpty() ? tr (" not selected", "interface") : name);205 .arg (name.isEmpty() ? tr ("Not selected", "interface") : name); 206 206 break; 207 207 } … … 214 214 QString macAddress (mDetails->property ("MAC_Address").toString()); 215 215 info += line.arg (tr ("MAC Address")) 216 .arg (macAddress.isEmpty() ? tr (" not selected", "address") : macAddress);216 .arg (macAddress.isEmpty() ? tr ("Not selected", "address") : macAddress); 217 217 bool cableConnected (mDetails->property ("Cable_Connected").toBool()); 218 218 info += line.arg (tr ("Cable")) 219 .arg (cableConnected ? tr (" connected", "cable") : tr ("not connected", "cable"));219 .arg (cableConnected ? tr ("Connected", "cable") : tr ("Not connected", "cable")); 220 220 #endif 221 221
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器