| 237 | } |
| 238 | |
| 239 | void 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 | |
| 254 | void UBCachePropertiesWidget::updateCacheColor(QColor color) |
| 255 | { |
nothing calls this directly
no test coverage detected