mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-23 19:20:59 +08:00
26 lines
530 B
C++
26 lines
530 B
C++
|
#include "FluWindowLifecycle.h"
|
||
|
|
||
|
#include "FluApp.h"
|
||
|
|
||
|
FluWindowLifecycle::FluWindowLifecycle(QObject *parent):QObject{parent}{
|
||
|
|
||
|
}
|
||
|
|
||
|
void FluWindowLifecycle::onCompleted(QQuickWindow* window){
|
||
|
this->_window = window;
|
||
|
FluApp::getInstance()->addWindow(this->_window);
|
||
|
}
|
||
|
|
||
|
void FluWindowLifecycle::onDestoryOnClose(){
|
||
|
if(_window){
|
||
|
FluApp::getInstance()->removeWindow(this->_window);
|
||
|
_window = nullptr;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
void FluWindowLifecycle::onDestruction(){
|
||
|
}
|
||
|
|
||
|
void FluWindowLifecycle::onVisible(bool visible){
|
||
|
}
|