1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 17:42:10 +01:00
falkonOfficial/src/webview/popupwebview.h
nowrep 0c699c709c Little improvements regarding popup windows + opening new tabs.
- showing popup window in center of screen if requested position
  has top left coordinates [0,0]
2012-01-22 15:15:43 +01:00

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