complete context init & build
This commit is contained in:
@@ -34,4 +34,9 @@ const QString Constant::TEMPLATE_MODULE = QString("Reflect.apply(doric.jsRegiste
|
||||
const QString Constant::TEMPLATE_CONTEXT_DESTROY = QString("doric.jsReleaseContext(\"%s\")");
|
||||
|
||||
const QString Constant::GLOBAL_DORIC = "doric";
|
||||
const QString Constant::DORIC_CONTEXT_INVOKE = "jsCallEntityMethod";
|
||||
const QString Constant::DORIC_TIMER_CALLBACK = "jsCallbackTimer";
|
||||
|
||||
const QString Constant::DORIC_ENTITY_INIT = "__init__";
|
||||
const QString Constant::DORIC_ENTITY_CREATE = "__onCreate__";
|
||||
const QString Constant::DORIC_ENTITY_BUILD = "__build__";
|
||||
|
@@ -23,7 +23,12 @@ public:
|
||||
static const QString TEMPLATE_CONTEXT_DESTROY;
|
||||
|
||||
static const QString GLOBAL_DORIC;
|
||||
static const QString DORIC_CONTEXT_INVOKE;
|
||||
static const QString DORIC_TIMER_CALLBACK;
|
||||
|
||||
static const QString DORIC_ENTITY_CREATE;
|
||||
static const QString DORIC_ENTITY_INIT;
|
||||
static const QString DORIC_ENTITY_BUILD;
|
||||
};
|
||||
|
||||
|
||||
|
@@ -14,6 +14,7 @@ public:
|
||||
QFile *file = new QFile(resource.fileName());
|
||||
file->open(QFile::ReadOnly | QFile::Text);
|
||||
QTextStream in(file);
|
||||
in.setCodec("UTF-8");
|
||||
QString content = in.readAll();
|
||||
file->close();
|
||||
delete file;
|
||||
|
Reference in New Issue
Block a user