/// \file rootwebview.h /// \ingroup WebGui /// \author Sergey Linev /// \date 2017-06-29 /// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback /// is welcome! /************************************************************************* * Copyright (C) 1995-2019, Rene Brun and Fons Rademakers. * * All rights reserved. * * * * For the licensing terms see $ROOTSYS/LICENSE. * * For the list of contributors see $ROOTSYS/README/CREDITS. * *************************************************************************/ #ifndef ROOT_RootWebView #define ROOT_RootWebView #include class RootWebView : public QWebEngineView { Q_OBJECT protected: unsigned fWidth, fHeight; int fX, fY; virtual void closeEvent(QCloseEvent *); virtual void dropEvent(QDropEvent* event); virtual void dragEnterEvent( QDragEnterEvent *e ); public slots: void onLoadStarted(); void onWindowCloseRequested(); signals: void drop(QDropEvent* event); public: RootWebView(QWidget *parent = nullptr, unsigned width = 0, unsigned height = 0, int x = -1, int y = -1); virtual ~RootWebView() = default; virtual QSize sizeHint() const; }; #endif