| 164 | } |
| 165 | |
| 166 | void GraphicContainer::zoomHomeView() |
| 167 | { |
| 168 | QRectF rect = _scene->itemsBoundingRect(); |
| 169 | rect.setBottom( rect.top() + rect.height()* 1.2 ); |
| 170 | |
| 171 | const int min_height = 300; |
| 172 | if( rect.height() < min_height ) |
| 173 | { |
| 174 | rect.setBottom( rect.top() + min_height ); |
| 175 | } |
| 176 | |
| 177 | _view->setSceneRect (rect); |
| 178 | _view->fitInView(rect, Qt::KeepAspectRatio); |
| 179 | _view->scale(0.9, 0.9); |
| 180 | } |
| 181 | |
| 182 | bool GraphicContainer::containsValidTree() const |
| 183 | { |
no outgoing calls
no test coverage detected