MCPcopy Create free account
hub / github.com/OpenBoard-org/OpenBoard / onCloseClicked

Method onCloseClicked

src/gui/UBCachePropertiesWidget.cpp:239–252  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

237}
238
239void UBCachePropertiesWidget::onCloseClicked()
240{
241 if(!mCaches.empty())
242 {
243 // Remove the current cache from the list
244 mCaches.remove(mCaches.indexOf(mpCurrentCache));
245
246 // Remove the cache from the board
247 UBApplication::boardController->activeScene()->removeItem(mpCurrentCache);
248 mpCurrentCache = NULL;
249
250 emit hideTab(this);
251 }
252}
253
254void UBCachePropertiesWidget::updateCacheColor(QColor color)
255{

Callers

nothing calls this directly

Calls 4

emptyMethod · 0.80
activeSceneMethod · 0.80
removeMethod · 0.45
removeItemMethod · 0.45

Tested by

no test coverage detected