24 lines
431 B
C++
24 lines
431 B
C++
|
#pragma once
|
||
|
|
||
|
#include "window-dock.hpp"
|
||
|
#include <QScopedPointer>
|
||
|
|
||
|
#include <browser-panel.hpp>
|
||
|
extern QCef *cef;
|
||
|
extern QCefCookieManager *panel_cookies;
|
||
|
|
||
|
class BrowserDock : public OBSDock {
|
||
|
public:
|
||
|
inline BrowserDock() : OBSDock() {}
|
||
|
|
||
|
QScopedPointer<QCefWidget> cefWidget;
|
||
|
|
||
|
inline void SetWidget(QCefWidget *widget_)
|
||
|
{
|
||
|
setWidget(widget_);
|
||
|
cefWidget.reset(widget_);
|
||
|
}
|
||
|
|
||
|
void closeEvent(QCloseEvent *event) override;
|
||
|
};
|