Remove widget pointer from ReviveTabController
The pointer is not needed and is an anti pattern.
This commit is contained in:
@@ -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