add switch bridge

This commit is contained in:
王劲鹏
2021-05-27 18:18:30 +08:00
committed by osborn
parent b6033d6eb6
commit 19cc85cf1c
7 changed files with 52 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
#ifndef DORICSWITCHBRIDGE_H
#define DORICSWITCHBRIDGE_H
#include <QObject>
#include <QVariant>
#include "DoricExport.h"
class DORIC_EXPORT DoricSwitchBridge : public QObject {
Q_OBJECT
public:
explicit DoricSwitchBridge(QObject *parent = nullptr);
Q_INVOKABLE
void onSwitch(QString pointer, bool checked);
signals:
};
#endif // DORICSWITCHBRIDGE_H