913821ee8e
After cleaning up the native flags in various places, and disabling making sibling of native widgets native, BrowserDock was left in an inconsistent state, since it requires being native for CEF to work properly. Make BrowserDock native.
24 lines
467 B
C++
24 lines
467 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() { setAttribute(Qt::WA_NativeWindow); }
|
|
|
|
QScopedPointer<QCefWidget> cefWidget;
|
|
|
|
inline void SetWidget(QCefWidget *widget_)
|
|
{
|
|
setWidget(widget_);
|
|
cefWidget.reset(widget_);
|
|
}
|
|
|
|
void closeEvent(QCloseEvent *event) override;
|
|
};
|