diff --git a/src/overlaycontroller.cpp b/src/overlaycontroller.cpp index d77c0f7..0fb6c42 100644 --- a/src/overlaycontroller.cpp +++ b/src/overlaycontroller.cpp @@ -485,7 +485,7 @@ void OverlayController::SetWidget( QQuickItem* quickItem, m_pPumpEventsTimer->start(); m_steamVRTabController.initStage2( this ); - m_chaperoneTabController.initStage2( this, m_pWindow.get() ); + m_chaperoneTabController.initStage2( this ); m_fixFloorTabController.initStage2( this, m_pWindow.get() ); m_audioTabController.initStage2( this, m_pWindow.get() ); m_statisticsTabController.initStage2( this, m_pWindow.get() ); diff --git a/src/tabcontrollers/ChaperoneTabController.cpp b/src/tabcontrollers/ChaperoneTabController.cpp index e23e72e..066152b 100644 --- a/src/tabcontrollers/ChaperoneTabController.cpp +++ b/src/tabcontrollers/ChaperoneTabController.cpp @@ -47,11 +47,9 @@ void ChaperoneTabController::initStage1() eventLoopTick( nullptr, 0.0f, 0.0f, 0.0f ); } -void ChaperoneTabController::initStage2( OverlayController* var_parent, - QQuickWindow* var_widget ) +void ChaperoneTabController::initStage2( OverlayController* var_parent ) { this->parent = var_parent; - this->widget = var_widget; } ChaperoneTabController::~ChaperoneTabController() diff --git a/src/tabcontrollers/ChaperoneTabController.h b/src/tabcontrollers/ChaperoneTabController.h index 7ac59d7..227f326 100644 --- a/src/tabcontrollers/ChaperoneTabController.h +++ b/src/tabcontrollers/ChaperoneTabController.h @@ -135,7 +135,6 @@ class ChaperoneTabController : public QObject private: OverlayController* parent; - QQuickWindow* widget; float m_visibility = 0.6f; float m_fadeDistance = 0.7f; @@ -193,7 +192,7 @@ public: ~ChaperoneTabController(); void initStage1(); - void initStage2( OverlayController* parent, QQuickWindow* widget ); + void initStage2( OverlayController* parent ); void eventLoopTick( vr::TrackedDevicePose_t* devicePoses, float leftSpeed,