ui/obs-browser-widget: Allow directly modifying underlying widget

This commit is contained in:
Michael Fabian 'Xaymar' Dirks 2023-03-09 15:40:19 +01:00
parent d073889126
commit 3187a165ba
2 changed files with 7 additions and 0 deletions

View file

@ -91,6 +91,11 @@ streamfx::ui::obs_browser_widget::obs_browser_widget(QUrl url, QWidget* parent)
streamfx::ui::obs_browser_widget::~obs_browser_widget() {}
QWidget* streamfx::ui::obs_browser_widget::cefwidget()
{
return _widget;
}
void streamfx::ui::obs_browser_widget::set_url(QUrl url)
{
dynamic_cast<QCefWidget*>(_widget)->setURL(url.toString().toStdString());

View file

@ -46,6 +46,8 @@ namespace streamfx::ui {
void set_url(QUrl url);
QWidget* cefwidget();
public:
static bool is_available();
};