add click for text stack hlayout vlayout
This commit is contained in:
@@ -29,6 +29,7 @@ const QString DoricConstant::GLOBAL_DORIC = "doric";
|
||||
const QString DoricConstant::DORIC_CONTEXT_INVOKE = "jsCallEntityMethod";
|
||||
const QString DoricConstant::DORIC_TIMER_CALLBACK = "jsCallbackTimer";
|
||||
|
||||
const QString DoricConstant::DORIC_ENTITY_RESPONSE = "__response__";
|
||||
const QString DoricConstant::DORIC_ENTITY_INIT = "__init__";
|
||||
const QString DoricConstant::DORIC_ENTITY_CREATE = "__onCreate__";
|
||||
const QString DoricConstant::DORIC_ENTITY_BUILD = "__build__";
|
||||
|
@@ -26,6 +26,7 @@ public:
|
||||
static const QString DORIC_CONTEXT_INVOKE;
|
||||
static const QString DORIC_TIMER_CALLBACK;
|
||||
|
||||
static const QString DORIC_ENTITY_RESPONSE;
|
||||
static const QString DORIC_ENTITY_CREATE;
|
||||
static const QString DORIC_ENTITY_INIT;
|
||||
static const QString DORIC_ENTITY_BUILD;
|
||||
|
@@ -1,7 +1,10 @@
|
||||
#include "DoricMouseAreaBridge.h"
|
||||
#include "shader/DoricViewNode.h"
|
||||
|
||||
DoricMouseAreaBridge::DoricMouseAreaBridge(QObject *parent) : QObject(parent) {}
|
||||
|
||||
void DoricMouseAreaBridge::onClick(QVariant functionId) {
|
||||
qCritical() << functionId;
|
||||
void DoricMouseAreaBridge::onClick(qint64 pointer) {
|
||||
QObject *object = (QObject *)(pointer);
|
||||
DoricViewNode *viewNode = dynamic_cast<DoricViewNode *>(object);
|
||||
qCritical() << viewNode;
|
||||
}
|
||||
|
@@ -10,7 +10,7 @@ public:
|
||||
explicit DoricMouseAreaBridge(QObject *parent = nullptr);
|
||||
|
||||
Q_INVOKABLE
|
||||
void onClick(QVariant functionId);
|
||||
void onClick(qint64 pointer);
|
||||
signals:
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user