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/plugin/DoricPopoverPlugin.h

30 lines
604 B
C
Raw Normal View History

2021-04-22 20:46:00 +08:00
#ifndef DORICPOPOVERPLUGIN_H
#define DORICPOPOVERPLUGIN_H
#include <QQuickItem>
2021-05-18 16:15:28 +08:00
#include "DoricExport.h"
#include "DoricNativePlugin.h"
2021-04-22 20:46:00 +08:00
static QString TYPE = "popover";
2021-05-18 16:15:28 +08:00
class DORIC_EXPORT DoricPopoverPlugin : public DoricNativePlugin {
2021-04-22 20:46:00 +08:00
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