| 129 | } |
| 130 | |
| 131 | std::shared_ptr<QImage> CloudImage::createView() { |
| 132 | if (auto active = activeView()) { |
| 133 | return active; |
| 134 | } |
| 135 | auto view = std::make_shared<QImage>(); |
| 136 | _view = view; |
| 137 | return view; |
| 138 | } |
| 139 | |
| 140 | std::shared_ptr<QImage> CloudImage::activeView() const { |
| 141 | return _view.lock(); |
no outgoing calls
no test coverage detected