used for the ctrl-click color picker (not the information bar at the bottom of the viewer)
| 3835 | |
| 3836 | // used for the ctrl-click color picker (not the information bar at the bottom of the viewer) |
| 3837 | bool |
| 3838 | ViewerGL::pickColor(double x, |
| 3839 | double y, |
| 3840 | bool pickInput) |
| 3841 | { |
| 3842 | bool isSync = _imp->viewerTab->isViewersSynchroEnabled(); |
| 3843 | |
| 3844 | if (isSync) { |
| 3845 | bool res = false; |
| 3846 | const std::list<ViewerTab*>& allViewers = _imp->viewerTab->getGui()->getViewersList(); |
| 3847 | for (std::list<ViewerTab*>::const_iterator it = allViewers.begin(); it != allViewers.end(); ++it) { |
| 3848 | bool ret = (*it)->getViewer()->pickColorInternal(x, y, pickInput); |
| 3849 | if ( (*it)->getViewer() == this ) { |
| 3850 | res = ret; |
| 3851 | } |
| 3852 | } |
| 3853 | |
| 3854 | return res; |
| 3855 | } else { |
| 3856 | return pickColorInternal(x, y, pickInput); |
| 3857 | } |
| 3858 | } |
| 3859 | |
| 3860 | void |
| 3861 | ViewerGL::updateInfoWidgetColorPicker(const QPointF & imgPos, |
nothing calls this directly
no test coverage detected