mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 17:42:10 +01:00
0c699c709c
- showing popup window in center of screen if requested position has top left coordinates [0,0]
34 lines
581 B
C++
34 lines
581 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();
|
|
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
|