Remove widget pointer from ReviveTabController
The pointer is not needed and is an anti pattern.
This commit is contained in:
@@ -490,7 +490,7 @@ void OverlayController::SetWidget( QQuickItem* quickItem,
|
||||
m_audioTabController.initStage2();
|
||||
m_statisticsTabController.initStage2( this );
|
||||
m_settingsTabController.initStage2( this );
|
||||
m_reviveTabController.initStage2( this, m_pWindow.get() );
|
||||
m_reviveTabController.initStage2( this );
|
||||
m_utilitiesTabController.initStage2( this, m_pWindow.get() );
|
||||
m_videoTabController.initStage2( this, m_pWindow.get() );
|
||||
m_moveCenterTabController.initStage2( this, m_pWindow.get() );
|
||||
|
||||
@@ -297,11 +297,9 @@ void ReviveTabController::initStage1( bool forceRevivePage )
|
||||
}
|
||||
}
|
||||
|
||||
void ReviveTabController::initStage2( OverlayController* var_parent,
|
||||
QQuickWindow* var_widget )
|
||||
void ReviveTabController::initStage2( OverlayController* var_parent )
|
||||
{
|
||||
this->parent = var_parent;
|
||||
this->widget = var_widget;
|
||||
}
|
||||
|
||||
void ReviveTabController::eventLoopTick()
|
||||
|
||||
@@ -70,7 +70,6 @@ class ReviveTabController : public QObject
|
||||
|
||||
private:
|
||||
OverlayController* parent;
|
||||
QQuickWindow* widget;
|
||||
|
||||
bool m_isOverlayInstalled = false;
|
||||
int m_gripButtonMode = 0;
|
||||
@@ -98,7 +97,7 @@ private:
|
||||
|
||||
public:
|
||||
void initStage1( bool forceRevivePage );
|
||||
void initStage2( OverlayController* parent, QQuickWindow* widget );
|
||||
void initStage2( OverlayController* parent );
|
||||
|
||||
void eventLoopTick();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user