Changeset 101122 in vbox for trunk/src/VBox
- Timestamp:
- Sep 14, 2023 3:59:37 PM (16 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationCenter.cpp
r99265 r101122 411 411 412 412 /* Cleanup items first: */ 413 cleanup ();413 cleanupItems(); 414 414 415 415 /* Populate model contents again: */ … … 753 753 } 754 754 755 void UINotificationCenter::cleanup() 756 { 757 /* Cleanup items: */ 755 void UINotificationCenter::cleanupModel() 756 { 757 delete m_pModel; 758 m_pModel = 0; 759 } 760 761 void UINotificationCenter::cleanupItems() 762 { 758 763 qDeleteAll(m_items); 759 764 m_items.clear(); 765 } 766 767 void UINotificationCenter::cleanup() 768 { 769 cleanupModel(); 770 cleanupItems(); 760 771 } 761 772 -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationCenter.h
r99265 r101122 163 163 /** Prepares open-timer. */ 164 164 void prepareOpenTimer(); 165 /** Cleanups model. */ 166 void cleanupModel(); 167 /** Cleanups items. */ 168 void cleanupItems(); 165 169 /** Cleanups everything. */ 166 170 void cleanup();
Note:
See TracChangeset
for help on using the changeset viewer.