| 3061 | } |
| 3062 | |
| 3063 | void |
| 3064 | ViewerInstance::onAutoContrastChanged(bool autoContrast, |
| 3065 | bool refresh) |
| 3066 | { |
| 3067 | // always running in the main thread |
| 3068 | assert( qApp && qApp->thread() == QThread::currentThread() ); |
| 3069 | bool changed = false; |
| 3070 | { |
| 3071 | QMutexLocker l(&_imp->viewerParamsMutex); |
| 3072 | if (_imp->viewerParamsAutoContrast != autoContrast) { |
| 3073 | _imp->viewerParamsAutoContrast = autoContrast; |
| 3074 | changed = true; |
| 3075 | } |
| 3076 | } |
| 3077 | if ( changed && refresh && !getApp()->getProject()->isLoadingProject() ) { |
| 3078 | renderCurrentFrame(true); |
| 3079 | } |
| 3080 | } |
| 3081 | |
| 3082 | bool |
| 3083 | ViewerInstance::isAutoContrastEnabled() const |
nothing calls this directly
no test coverage detected