Showing the changes to interface/src/Application_Graphics.cpp (1 of 42 files). Show all
Unified · Split
| @@ -319,7 +319,7 @@ void Application::initializeUi() { · 318 unmodified lines | |||
| 319 | 319 | ||
| 320 | #if !defined(DISABLE_QML) | 320 | #if !defined(DISABLE_QML) |
| 321 | _glWidget->installEventFilter(offscreenUi.data()); | 321 | _glWidget->installEventFilter(offscreenUi.data()); |
| 322 | offscreenUi->setMouseTranslator([=](const QPointF& pt) { | 322 | offscreenUi->setMouseTranslator([=, this](const QPointF& pt) { |
| 323 | QPointF result = pt; | 323 | QPointF result = pt; |
| 324 | auto displayPlugin = getActiveDisplayPlugin(); | 324 | auto displayPlugin = getActiveDisplayPlugin(); |
| 325 | if (displayPlugin->isHmd()) { | 325 | if (displayPlugin->isHmd()) { |
| @@ -362,7 +362,7 @@ void Application::initializeUi() { · 36 unmodified lines | |||
| 362 | } | 362 | } |
| 363 | 363 | ||
| 364 | auto compositorHelper = DependencyManager::get<CompositorHelper>(); | 364 | auto compositorHelper = DependencyManager::get<CompositorHelper>(); |
| 365 | connect(compositorHelper.data(), &CompositorHelper::allowMouseCaptureChanged, this, [=] { | 365 | connect(compositorHelper.data(), &CompositorHelper::allowMouseCaptureChanged, this, [=, this] { |
| 366 | if (isHMDMode()) { | 366 | if (isHMDMode()) { |
| 367 | auto compositorHelper = DependencyManager::get<CompositorHelper>(); // don't capture outer smartpointer | 367 | auto compositorHelper = DependencyManager::get<CompositorHelper>(); // don't capture outer smartpointer |
| 368 | showCursor(compositorHelper->getAllowMouseCapture() ? | 368 | showCursor(compositorHelper->getAllowMouseCapture() ? |