mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 22:09:52 +08:00
24 lines
450 B
C++
24 lines
450 B
C++
#ifndef WEBVIEWER_H
|
|
#define WEBVIEWER_H
|
|
|
|
#include <QWebEngineView>
|
|
|
|
namespace vnotex
|
|
{
|
|
class WebViewer : public QWebEngineView
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit WebViewer(const QColor &p_background,
|
|
qreal p_zoomFactor,
|
|
QWidget *p_parent = nullptr);
|
|
|
|
virtual ~WebViewer();
|
|
|
|
signals:
|
|
void linkHovered(const QString &p_url);
|
|
};
|
|
}
|
|
|
|
#endif // WEBVIEWER_H
|