MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / show

Method show

src/plugins/core/notify/notificationmanager.cpp:136–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void NotificationManager::show()
137{
138 if (d->ncWidget && d->ncWidget->isVisible())
139 return;
140
141 if (!d->mainWindow)
142 d->mainWindow = Controller::instance()->mainWindow();
143
144 if (!d->ncWidget)
145 d->ncWidget = new NotificationCenterWidget(d->mainWindow);
146
147 for (auto bubble : d->displayedBubbleList)
148 bubble->close();
149
150 d->displayedBubbleList.clear();
151 d->ncWidget->setNotifications(d->allEntities);
152 d->addContent(d->ncWidget);
153}
154
155void NotificationManager::hide()
156{

Callers 15

setHeaderNamesMethod · 0.45
setupUiMethod · 0.45
showProgressMethod · 0.45
eventFilterMethod · 0.45
showSpinnerMethod · 0.45
addContentMethod · 0.45
switchContextWidgetMethod · 0.45
loadingMethod · 0.45
initMainWindowMethod · 0.45
initContextWidgetMethod · 0.45
showStatusBarMethod · 0.45
checkDocksManagerMethod · 0.45

Calls 6

isVisibleMethod · 0.80
addContentMethod · 0.80
mainWindowMethod · 0.45
closeMethod · 0.45
clearMethod · 0.45
setNotificationsMethod · 0.45

Tested by

no test coverage detected