split project with app & doric module
This commit is contained in:
27
doric-Qt/example/doric/plugin/DoricPopoverPlugin.h
Normal file
27
doric-Qt/example/doric/plugin/DoricPopoverPlugin.h
Normal file
@@ -0,0 +1,27 @@
|
||||
#ifndef DORICPOPOVERPLUGIN_H
|
||||
#define DORICPOPOVERPLUGIN_H
|
||||
|
||||
#include "DoricNativePlugin.h"
|
||||
|
||||
#include <QQuickItem>
|
||||
|
||||
static QString TYPE = "popover";
|
||||
|
||||
class DoricPopoverPlugin : public DoricNativePlugin {
|
||||
Q_OBJECT
|
||||
public:
|
||||
using DoricNativePlugin::DoricNativePlugin;
|
||||
|
||||
Q_INVOKABLE void show(QString jsValueString, QString callbackId);
|
||||
|
||||
Q_INVOKABLE void dismiss(QString jsValueString, QString callbackId);
|
||||
|
||||
private:
|
||||
QQuickItem *fullScreenView = nullptr;
|
||||
|
||||
void dismissViewNode(DoricViewNode *node);
|
||||
|
||||
void dismissPopover();
|
||||
};
|
||||
|
||||
#endif // DORICPOPOVERPLUGIN_H
|
Reference in New Issue
Block a user