mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-12-18 03:14:06 +00:00
9ebf38f888
when trigger inspectelement through contextmenu , should navigate to the very element in devtool.
25 lines
482 B
C++
25 lines
482 B
C++
#ifndef ARTICLE_INSPECT_H
|
|
#define ARTICLE_INSPECT_H
|
|
|
|
#include <QDialog>
|
|
#include <QWebEngineView>
|
|
#include <QWebEnginePage>
|
|
#include <QVBoxLayout>
|
|
|
|
class ArticleInspector : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
QWebEngineView * inspectView = nullptr;
|
|
QWebEnginePage * inspectedPage = nullptr;
|
|
public:
|
|
ArticleInspector( QWidget * parent = nullptr );
|
|
|
|
void setInspectPage( QWebEngineView * view);
|
|
|
|
private:
|
|
|
|
virtual void closeEvent( QCloseEvent * );
|
|
};
|
|
|
|
#endif // ARTICLE_INSPECT_H
|