This change is good; but since you did this, you should also change the corresponding `elseif(APPLE)` in modules/highgui/CMakeLists.txt to `elseif(HAVE_QTKIT)`.