16 lines
427 B
C++
16 lines
427 B
C++
#include "DoricPanel.h"
|
|
#include "shader/DoricRootNode.h"
|
|
|
|
DoricPanel::DoricPanel() {}
|
|
|
|
void DoricPanel::config(QString script, QString alias, QString extra) {
|
|
DoricContext *context = DoricContext::create(script, alias, extra);
|
|
config(context);
|
|
}
|
|
|
|
void DoricPanel::config(DoricContext *context) {
|
|
this->mContext = context;
|
|
this->mContext->getRootNode()->setRootView(this);
|
|
this->mContext->build(width(), height());
|
|
}
|