Remove widget pointer from FixFloorTabController
The pointer is not needed and is an anti pattern.
This commit is contained in:
@@ -486,7 +486,7 @@ void OverlayController::SetWidget( QQuickItem* quickItem,
|
|||||||
|
|
||||||
m_steamVRTabController.initStage2( this );
|
m_steamVRTabController.initStage2( this );
|
||||||
m_chaperoneTabController.initStage2( this );
|
m_chaperoneTabController.initStage2( this );
|
||||||
m_fixFloorTabController.initStage2( this, m_pWindow.get() );
|
m_fixFloorTabController.initStage2( this );
|
||||||
m_audioTabController.initStage2( this, m_pWindow.get() );
|
m_audioTabController.initStage2( this, m_pWindow.get() );
|
||||||
m_statisticsTabController.initStage2( this, m_pWindow.get() );
|
m_statisticsTabController.initStage2( this, m_pWindow.get() );
|
||||||
m_settingsTabController.initStage2( this, m_pWindow.get() );
|
m_settingsTabController.initStage2( this, m_pWindow.get() );
|
||||||
|
|||||||
@@ -7,11 +7,9 @@ namespace advsettings
|
|||||||
{
|
{
|
||||||
void FixFloorTabController::initStage1() {}
|
void FixFloorTabController::initStage1() {}
|
||||||
|
|
||||||
void FixFloorTabController::initStage2( OverlayController* var_parent,
|
void FixFloorTabController::initStage2( OverlayController* var_parent )
|
||||||
QQuickWindow* var_widget )
|
|
||||||
{
|
{
|
||||||
this->parent = var_parent;
|
this->parent = var_parent;
|
||||||
this->widget = var_widget;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void FixFloorTabController::eventLoopTick(
|
void FixFloorTabController::eventLoopTick(
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ class FixFloorTabController : public QObject
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
OverlayController* parent;
|
OverlayController* parent;
|
||||||
QQuickWindow* widget;
|
|
||||||
|
|
||||||
float controllerUpOffsetCorrection
|
float controllerUpOffsetCorrection
|
||||||
= 0.062f; // Controller touchpad facing upwards
|
= 0.062f; // Controller touchpad facing upwards
|
||||||
@@ -55,7 +54,7 @@ private:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
void initStage1();
|
void initStage1();
|
||||||
void initStage2( OverlayController* parent, QQuickWindow* widget );
|
void initStage2( OverlayController* parent );
|
||||||
|
|
||||||
void eventLoopTick( vr::TrackedDevicePose_t* devicePoses );
|
void eventLoopTick( vr::TrackedDevicePose_t* devicePoses );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user