Changeset View
Changeset View
Standalone View
Standalone View
src/lib/marble/MarbleWebView.h
Context not available. | |||||
11 | #ifndef MARBLEWEBVIEW_H | 11 | #ifndef MARBLEWEBVIEW_H | ||
---|---|---|---|---|---|
12 | #define MARBLEWEBVIEW_H | 12 | #define MARBLEWEBVIEW_H | ||
13 | 13 | | |||
14 | #include <QWebView> | 14 | #include <QWebEngineView> | ||
15 | 15 | | |||
16 | #include "marble_export.h" | 16 | #include "marble_export.h" | ||
17 | 17 | | |||
18 | class MARBLE_EXPORT MarbleWebView : public QWebView | 18 | class MARBLE_EXPORT MarbleWebView : public QWebEngineView | ||
19 | { | 19 | { | ||
20 | Q_OBJECT | 20 | Q_OBJECT | ||
21 | public: | 21 | public: | ||
22 | explicit MarbleWebView(QWidget *parent = 0); | 22 | explicit MarbleWebView(QWidget *parent = 0); | ||
23 | 23 | | |||
24 | protected: | 24 | protected: | ||
25 | bool event(QEvent *); | ||||
25 | void contextMenuEvent(QContextMenuEvent *event); | 26 | void contextMenuEvent(QContextMenuEvent *event); | ||
26 | void keyPressEvent(QKeyEvent *event); | 27 | void keyPressEvent(QKeyEvent *event); | ||
27 | 28 | | |||
28 | private Q_SLOTS: | 29 | private Q_SLOTS: | ||
29 | void copySelectedText(); | 30 | void copySelectedText(); | ||
30 | 31 | | |||
32 | Q_SIGNALS: | ||||
33 | void updateFinished(); | ||||
34 | | ||||
31 | private: | 35 | private: | ||
32 | QMenu *m_contextMenu; | 36 | QMenu *m_contextMenu; | ||
33 | QAction *m_copyAction; | 37 | QAction *m_copyAction; | ||
Context not available. |