This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-Qt/example/doric/shader/DoricInputNode.h

28 lines
529 B
C
Raw Normal View History

2021-05-25 16:51:39 +08:00
#ifndef DORICINPUTNODE_H
#define DORICINPUTNODE_H
#include "DoricExport.h"
#include "DoricViewNode.h"
class DORIC_EXPORT DoricInputNode : public DoricViewNode {
2021-05-27 10:56:58 +08:00
private:
QString onTextChangeId;
QString onFocusChangeId;
2021-05-25 16:51:39 +08:00
public:
using DoricViewNode::DoricViewNode;
QQuickItem *build() override;
virtual void blend(QQuickItem *view, QString name, QJsonValue prop) override;
2021-05-27 10:56:58 +08:00
QSizeF sizeThatFits(QSizeF size);
void onTextChange(QString text);
2021-05-27 14:00:19 +08:00
void onFocusChange(bool hasFocus);
2021-05-25 16:51:39 +08:00
};
#endif // DORICINPUTNODE_H