This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-Qt/doric/shader/DoricRootNode.cpp

16 lines
373 B
C++
Raw Normal View History

2021-02-04 16:59:58 +08:00
#include "DoricRootNode.h"
2021-02-19 10:04:54 +08:00
void DoricRootNode::setRootView(QQuickItem *rootView) {
this->mView = rootView;
2021-04-13 21:14:17 +08:00
this->createLayouts(rootView);
this->getLayouts()->setLayoutType(DoricLayoutType::DoricStack);
}
2021-04-20 20:44:24 +08:00
QQuickItem *DoricRootNode::getRootView() { return mView; }
2021-04-13 21:14:17 +08:00
void DoricRootNode::requestLayout() {
getLayouts()->apply();
DoricStackNode::requestLayout();
2021-02-19 10:04:54 +08:00
}