mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-06 06:19:52 +08:00

TODO: Currently the exported PDF does not have the outline which is needed to fix via third-party utils.
29 lines
438 B
C++
29 lines
438 B
C++
#ifndef VWEBVIEW_H
|
|
#define VWEBVIEW_H
|
|
|
|
#include <QWebEngineView>
|
|
|
|
class VFile;
|
|
|
|
class VWebView : public QWebEngineView
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
// @p_file could be NULL.
|
|
explicit VWebView(VFile *p_file, QWidget *p_parent = Q_NULLPTR);
|
|
|
|
signals:
|
|
void editNote();
|
|
|
|
protected:
|
|
void contextMenuEvent(QContextMenuEvent *p_event);
|
|
|
|
private slots:
|
|
void handleEditAction();
|
|
|
|
private:
|
|
VFile *m_file;
|
|
};
|
|
|
|
#endif // VWEBVIEW_H
|