2012-01-21 20:29:33 +01:00
|
|
|
#ifndef POPUPWEBVIEW_H
|
|
|
|
#define POPUPWEBVIEW_H
|
|
|
|
|
|
|
|
#include <QMenu>
|
|
|
|
|
|
|
|
#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();
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
void closeView();
|
|
|
|
|
|
|
|
private slots:
|
2012-01-22 11:49:58 +01:00
|
|
|
void openUrlInNewTab(const QUrl &url = QUrl());
|
2012-01-21 20:29:33 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
void contextMenuEvent(QContextMenuEvent* event);
|
|
|
|
|
|
|
|
PopupWebPage* m_page;
|
|
|
|
QMenu* m_menu;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // POPUPWEBVIEW_H
|