18 lines
460 B
C++
18 lines
460 B
C++
#include "DoricStackNode.h"
|
|
|
|
QQuickItem *DoricStackNode::build() {
|
|
QQmlComponent component(getContext()->getQmlEngine());
|
|
|
|
const QUrl url(QStringLiteral("qrc:/doric/qml/stack.qml"));
|
|
component.loadUrl(url);
|
|
|
|
if (component.isError()) {
|
|
qCritical() << component.errorString();
|
|
}
|
|
|
|
QQuickItem *item = qobject_cast<QQuickItem *>(component.create());
|
|
return item;
|
|
}
|
|
|
|
void DoricStackNode::blendLayoutConfig() { DoricViewNode::blendLayoutConfig(); }
|