vnote/src/vwebview.h
Le Tan 0131569c02 support exporting note as PDF file
TODO: Currently the exported PDF does not have the outline which is
needed to fix via third-party utils.
2017-05-22 22:34:53 +08:00

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