handle input on text change & padding
This commit is contained in:
17
doric-Qt/example/doric/utils/DoricInputBridge.cpp
Normal file
17
doric-Qt/example/doric/utils/DoricInputBridge.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#include "DoricInputBridge.h"
|
||||
|
||||
#include "shader/DoricInputNode.h"
|
||||
|
||||
DoricInputBridge::DoricInputBridge(QObject *parent) : QObject(parent) {}
|
||||
|
||||
void DoricInputBridge::onTextChange(QString pointer, QString text) {
|
||||
QObject *object = (QObject *)(pointer.toULongLong());
|
||||
DoricInputNode *inputNode = dynamic_cast<DoricInputNode *>(object);
|
||||
|
||||
inputNode->onTextChange(text);
|
||||
}
|
||||
|
||||
void DoricInputBridge::onFocusChange(QString pointer) {
|
||||
QObject *object = (QObject *)(pointer.toULongLong());
|
||||
DoricInputNode *inputNode = dynamic_cast<DoricInputNode *>(object);
|
||||
}
|
Reference in New Issue
Block a user