mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-14 11:02:19 +01:00
36 lines
552 B
C++
36 lines
552 B
C++
#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:
|
|
|
|
private:
|
|
void contextMenuEvent(QContextMenuEvent* event);
|
|
|
|
PopupWebPage* m_page;
|
|
QWebFrame* m_clickedFrame;
|
|
QMenu* m_menu;
|
|
};
|
|
|
|
#endif // POPUPWEBVIEW_H
|