Changeset 98928 in vbox
- Timestamp:
- Mar 13, 2023 10:37:02 AM (21 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationCenter.cpp
r98903 r98928 396 396 397 397 /* Cleanup items first: */ 398 qDeleteAll(m_items); 399 m_items.clear(); 398 cleanup(); 400 399 401 400 /* Populate model contents again: */ … … 514 513 } 515 514 516 void UINotificationCenter::sltDetachCOM()517 {518 cleanup();519 }520 521 515 void UINotificationCenter::prepare() 522 516 { … … 527 521 if (parent()) 528 522 parent()->installEventFilter(this); 529 530 /* Prepare alignment: */531 m_enmAlignment = gEDataManager->notificationCenterAlignment();532 connect(gEDataManager, &UIExtraDataManager::sigNotificationCenterAlignmentChange,533 this, &UINotificationCenter::sltHandleAlignmentChange);534 /* Prepare order: */535 m_enmOrder = gEDataManager->notificationCenterOrder();536 connect(gEDataManager, &UIExtraDataManager::sigNotificationCenterOrderChange,537 this, &UINotificationCenter::sltHandleOrderChange);538 523 539 524 /* Prepare the rest of stuff: */ … … 543 528 prepareOpenTimer(); 544 529 545 /* COM related connections: */ 546 connect(&uiCommon(), &UICommon::sigAskToDetachCOM, 547 this, &UINotificationCenter::sltDetachCOM); 530 /* Prepare alignment: */ 531 m_enmAlignment = gEDataManager->notificationCenterAlignment(); 532 connect(gEDataManager, &UIExtraDataManager::sigNotificationCenterAlignmentChange, 533 this, &UINotificationCenter::sltHandleAlignmentChange); 534 sltHandleAlignmentChange(); 535 /* Prepare order: */ 536 m_enmOrder = gEDataManager->notificationCenterOrder(); 537 connect(gEDataManager, &UIExtraDataManager::sigNotificationCenterOrderChange, 538 this, &UINotificationCenter::sltHandleOrderChange); 539 sltHandleOrderChange(); 548 540 549 541 /* Apply language settings: */ -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationCenter.h
r98903 r98928 140 140 * @note Breaks blocking handleNow() call. */ 141 141 void sltHandleProgressFinished(); 142 143 /** Handles request to detach COM. */144 void sltDetachCOM();145 142 146 143 private: -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationModel.cpp
r98103 r98928 145 145 /* Wipe out all the objects: */ 146 146 foreach (const QUuid &uId, m_ids) 147 delete m_objects.value(uId);147 revokeObject(uId); 148 148 m_objects.clear(); 149 149 m_ids.clear();
Note:
See TracChangeset
for help on using the changeset viewer.