1 Star 2 Fork 0

wanggjghost/quickflux

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
qfmiddleware.h 820 Bytes
一键复制 编辑 原始数据 按行查看 历史
Ben Lau 提交于 2017-02-04 14:08 . Added a new class : Middleware
#ifndef QFMIDDLEWARE_H
#define QFMIDDLEWARE_H
#include <QQuickItem>
#include <QJSValue>
class QFMiddleware : public QQuickItem
{
Q_OBJECT
Q_PROPERTY(bool filterFunctionEnabled MEMBER m_filterFunctionEnabled NOTIFY filterFunctionEnabledChanged)
Q_PROPERTY(QJSValue _nextCallback READ nextCallback WRITE setNextCallback NOTIFY _nextCallbackChanged)
public:
QFMiddleware(QQuickItem* parent = 0);
QJSValue nextCallback() const;
void setNextCallback(const QJSValue &nextCallback);
signals:
void dispatched(QString type, QJSValue message);
void filterFunctionEnabledChanged();
void _nextCallbackChanged();
public slots:
void next(QString type, QJSValue message = QJSValue());
private:
bool m_filterFunctionEnabled;
QJSValue m_nextCallback;
};
#endif // QFMIDDLEWARE_H
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/wanggjghost/quickflux.git
git@gitee.com:wanggjghost/quickflux.git
wanggjghost
quickflux
quickflux
master

搜索帮助