mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-27 05:38:37 +08:00
修改registerForPageResult崩溃问题
This commit is contained in:
parent
11b2b04cb9
commit
4ab78bbaba
@ -43,9 +43,9 @@ void WindowHelper::firstUpdate(){
|
||||
|
||||
}
|
||||
|
||||
QVariant WindowHelper::createRegister(const QString& path){
|
||||
FluRegister *p = new FluRegister(this->window);
|
||||
p->from(this->window);
|
||||
QVariant WindowHelper::createRegister(QQuickWindow* window,const QString& path){
|
||||
FluRegister *p = new FluRegister(window);
|
||||
p->from(window);
|
||||
p->path(path);
|
||||
return QVariant::fromValue(p);
|
||||
}
|
||||
|
@ -16,7 +16,7 @@ public:
|
||||
|
||||
Q_INVOKABLE void initWindow(QQuickWindow* window);
|
||||
Q_INVOKABLE void destoryWindow();
|
||||
Q_INVOKABLE QVariant createRegister(const QString& path);
|
||||
Q_INVOKABLE QVariant createRegister(QQuickWindow* window,const QString& path);
|
||||
|
||||
Q_INVOKABLE void firstUpdate();
|
||||
|
||||
|
@ -87,7 +87,7 @@ ApplicationWindow {
|
||||
}
|
||||
|
||||
function registerForPageResult(path){
|
||||
return helper.createRegister(path)
|
||||
return helper.createRegister(window,path)
|
||||
}
|
||||
|
||||
function onResult(data){
|
||||
|
Loading…
Reference in New Issue
Block a user