Changeset 90600 in vbox
- Timestamp:
- Aug 10, 2021 3:13:39 PM (3 years 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
r90566 r90600 171 171 QUuid UINotificationCenter::append(UINotificationObject *pObject) 172 172 { 173 /* Open if not yet: */ 174 if (!m_pOpenButton->isChecked()) 173 AssertPtrReturn(m_pModel, QUuid()); 174 const QUuid uId = m_pModel->appendObject(pObject); 175 176 /* Open if object is critical and center isn't opened yet: */ 177 if (!m_pOpenButton->isChecked() && pObject->isCritical()) 175 178 m_pOpenButton->animateClick(); 176 179 177 AssertPtrReturn(m_pModel, QUuid()); 178 return m_pModel->appendObject(pObject); 180 return uId; 179 181 } 180 182 -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObject.cpp
r90591 r90600 69 69 } 70 70 71 bool UINotificationProgress::isCritical() const 72 { 73 return true; 74 } 75 71 76 void UINotificationProgress::handle() 72 77 { … … 135 140 } 136 141 142 bool UINotificationDownloader::isCritical() const 143 { 144 return true; 145 } 146 137 147 void UINotificationDownloader::handle() 138 148 { -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObject.h
r90590 r90600 53 53 UINotificationObject(); 54 54 55 /** Returns whether object is critical. */ 56 virtual bool isCritical() const = 0; 55 57 /** Returns object name. */ 56 58 virtual QString name() const = 0; … … 98 100 QString error() const; 99 101 102 /** Returns whether object is critical. */ 103 virtual bool isCritical() const; 100 104 /** Handles notification-object being added. */ 101 105 virtual void handle() /* override final */; … … 161 165 QString error() const; 162 166 167 /** Returns whether object is critical. */ 168 virtual bool isCritical() const; 163 169 /** Handles notification-object being added. */ 164 170 virtual void handle() /* override final */;
Note:
See TracChangeset
for help on using the changeset viewer.