| 49 | } |
| 50 | |
| 51 | bool MapStackedWidget::remove(QString key) |
| 52 | { |
| 53 | QWidget *w = map.take(key); |
| 54 | if(w) { |
| 55 | // if(indexOf(w) == currentIndex()) |
| 56 | // setCurrentIndex(0); |
| 57 | removeWidget(w); |
| 58 | } else { |
| 59 | qWarning(CAT_MAPSTACKWIDGET) << key << "not found in MapStackWidget. cannot remove"; |
| 60 | return false; |
| 61 | } |
| 62 | qDebug(CAT_MAPSTACKWIDGET) << key << "removed from to stack"; |
| 63 | return true; |
| 64 | } |
| 65 | |
| 66 | bool MapStackedWidget::contains(QString key) { return map.contains(key); } |
| 67 |
no outgoing calls
no test coverage detected