Changeset 90566 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Aug 7, 2021 11:41:15 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationCenter.cpp
r90565 r90566 144 144 void UINotificationCenter::setParent(QWidget *pParent) 145 145 { 146 /* Additionally hide if parent unset: */ 146 147 if (!pParent) 147 hide(); 148 setHidden(true); 149 150 /* Uninstall filter from previous parent: */ 148 151 if (parent()) 149 152 parent()->removeEventFilter(this); 153 154 /* Reparent: */ 150 155 QWidget::setParent(pParent); 156 157 /* Install filter to new parent: */ 151 158 if (parent()) 152 159 parent()->installEventFilter(this); 160 161 /* Show only if there is something to show: */ 153 162 if (parent()) 154 s how();163 setHidden(m_pModel->ids().isEmpty()); 155 164 } 156 165
Note:
See TracChangeset
for help on using the changeset viewer.