yolobs-studio/UI/window-dock-browser.hpp

24 lines
431 B
C++
Raw Permalink Normal View History

2019-09-22 21:19:10 +00:00
#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;
};