Changeset 98974 in vbox
- Timestamp:
- Mar 15, 2023 9:47:44 AM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIIndicatorsPool.cpp
r98973 r98974 62 62 virtual QString description() const { return m_strDescription; } 63 63 64 public slots: 65 64 66 /** Abstract update routine. */ 65 67 virtual void updateAppearance() = 0; … … 179 181 /* Configure connection: */ 180 182 connect(pMachine, &UIMachine::sigStorageDeviceChange, 181 this, &UIIndicatorHardDrive:: sltStorageDeviceChange);183 this, &UIIndicatorHardDrive::updateAppearance); 182 184 /* Translate finally: */ 183 185 retranslateUi(); 184 186 } 185 187 186 protected :188 protected slots: 187 189 188 190 /** Update routine. */ … … 205 207 /* Update indicator state: */ 206 208 setState(fAttachmentsPresent ? KDeviceActivity_Idle : KDeviceActivity_Null); 207 }208 209 private slots:210 211 /** Refreshes the tooltip if the device config changes at runtime (hotplugging, USB storage). */212 void sltStorageDeviceChange()213 {214 updateAppearance();215 209 } 216 210 }; … … 237 231 } 238 232 239 protected :233 protected slots: 240 234 241 235 /** Update routine. */ … … 282 276 } 283 277 284 protected :278 protected slots: 285 279 286 280 /** Update routine. */ … … 336 330 } 337 331 338 protected :332 protected slots: 339 333 340 334 /** Update routine. */ … … 393 387 /* Configure auto-update timer: */ 394 388 connect(m_pTimerAutoUpdate, &QTimer::timeout, 395 this, &UIIndicatorNetwork:: sltUpdateNetworkIPs);389 this, &UIIndicatorNetwork::updateAppearance); 396 390 /* Start timer immediately if machine is running: */ 397 391 sltHandleMachineStateChange(); … … 401 395 } 402 396 403 protected :397 protected slots: 404 398 405 399 /** Update routine. */ … … 439 433 } 440 434 441 /** Updates network IP addresses. */442 void sltUpdateNetworkIPs()443 {444 updateAppearance();445 }446 447 435 private: 448 436 … … 472 460 } 473 461 474 protected :462 protected slots: 475 463 476 464 /** Update routine. */ … … 516 504 } 517 505 518 protected :506 protected slots: 519 507 520 508 /** Update routine. */ … … 553 541 } 554 542 555 protected :543 protected slots: 556 544 557 545 /** Update routine. */ … … 633 621 drawContents(&painter); 634 622 } 623 624 protected slots: 635 625 636 626 /** Update routine. */ … … 761 751 } 762 752 753 protected slots: 754 763 755 /** Update routine. */ 764 756 virtual void updateAppearance() RT_OVERRIDE … … 832 824 } 833 825 834 protected :826 protected slots: 835 827 836 828 /** Update routine. */ … … 911 903 } 912 904 913 protected :905 protected slots: 914 906 915 907 /** Update routine. */
Note:
See TracChangeset
for help on using the changeset viewer.

