#ifndef POPUPWEBVIEW_H #define POPUPWEBVIEW_H #include #include "webview.h" class PopupWebPage; class PopupWebView : public WebView { Q_OBJECT public: explicit PopupWebView(QWidget* parent = 0); void setWebPage(PopupWebPage* page); PopupWebPage* webPage(); QWidget* overlayForJsAlert(); void openUrlInNewTab(const QUrl &url, Qz::NewTabPositionFlag position); signals: public slots: void closeView(); private: void contextMenuEvent(QContextMenuEvent* event); PopupWebPage* m_page; QMenu* m_menu; }; #endif // POPUPWEBVIEW_H