- Timestamp:
- Nov 11, 2014 11:12:21 AM (10 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 4 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/VirtualBox1.qrc
r52696 r53301 217 217 <file alias="nw_32px.png">images/nw_32px.png</file> 218 218 <file alias="nw_disabled_16px.png">images/nw_disabled_16px.png</file> 219 <file alias="nw_disconnected_16px.png">images/nw_disconnected_16px.png</file> 219 220 <file alias="nw_error_16px.png">images/nw_error_16px.png</file> 220 221 <file alias="nw_loading_16px.png">images/nw_loading_16px.png</file> -
trunk/src/VBox/Frontends/VirtualBox/VirtualBox1_hidpi.qrc
r52696 r53301 211 211 <file alias="nw_32px_hidpi.png">images/hidpi/nw_32px_hidpi.png</file> 212 212 <file alias="nw_disabled_16px_hidpi.png">images/hidpi/nw_disabled_16px_hidpi.png</file> 213 <file alias="nw_disconnected_16px_hidpi.png">images/hidpi/nw_disconnected_16px_hidpi.png</file> 213 214 <file alias="nw_error_16px_hidpi.png">images/hidpi/nw_error_16px_hidpi.png</file> 214 215 <file alias="nw_loading_16px_hidpi.png">images/hidpi/nw_loading_16px_hidpi.png</file> … … 253 254 <file alias="os_opensuse_64_hidpi.png">images/hidpi/os_opensuse_64_hidpi.png</file> 254 255 <file alias="os_opensuse_hidpi.png">images/hidpi/os_opensuse_hidpi.png</file> 255 <file alias="os_oracle_64_hidpi.png">images/hidpi/os_oracle_64_hidpi.png</file>256 256 </qresource> 257 257 </RCC> -
trunk/src/VBox/Frontends/VirtualBox/VirtualBox2_hidpi.qrc
r52696 r53301 1 1 <RCC> 2 2 <qresource prefix="/"> 3 <file alias="os_oracle_64_hidpi.png">images/hidpi/os_oracle_64_hidpi.png</file> 3 4 <file alias="os_oracle_hidpi.png">images/hidpi/os_oracle_hidpi.png</file> 4 5 <file alias="os_oraclesolaris_64_hidpi.png">images/hidpi/os_oraclesolaris_64_hidpi.png</file> -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp
r53050 r53301 403 403 /* Enumerate up to uMaxCount adapters: */ 404 404 bool fAdaptersPresent = false; 405 bool fCablesDisconnected = true; 405 406 for (ulong uSlot = 0; uSlot < uMaxCount; ++uSlot) 406 407 { … … 417 418 strGuestIp = ipList[iIp]; 418 419 } 420 /* Check if the adapter's cable is connected: */ 421 const bool fCableConnected = adapter.GetCableConnected(); 422 if (fCablesDisconnected && fCableConnected) 423 fCablesDisconnected = false; 419 424 /* Append adapter data: */ 420 425 strFullData += QApplication::translate("UIIndicatorsPool", … … 423 428 .arg(gpConverter->toString(adapter.GetAttachmentType())) 424 429 .arg(strGuestIp.isEmpty() ? "" : "IP " + strGuestIp + ", ") 425 .arg( adapter.GetCableConnected()?430 .arg(fCableConnected ? 426 431 QApplication::translate("UIIndicatorsPool", "connected", "Network adapters tooltip") : 427 432 QApplication::translate("UIIndicatorsPool", "disconnected", "Network adapters tooltip")); … … 437 442 hide(); 438 443 444 /* Update icon for the 'Null' state: */ 445 if (fAdaptersPresent && fCablesDisconnected) 446 setStateIcon(KDeviceActivity_Null, UIIconPool::iconSet(":/nw_disconnected_16px.png")); 447 439 448 /* Update tool-tip: */ 440 449 setToolTip(strToolTip.arg(strFullData)); 441 450 /* Update indicator state: */ 442 setState(fAdaptersPresent ? KDeviceActivity_Idle : KDeviceActivity_Null);451 setState(fAdaptersPresent && !fCablesDisconnected ? KDeviceActivity_Idle : KDeviceActivity_Null); 443 452 } 444 453
Note:
See TracChangeset
for help on using the changeset viewer.