mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-12-28 02:21:25 +00:00
ui/obs-browser-widget: Allow directly modifying underlying widget
This commit is contained in:
parent
d073889126
commit
3187a165ba
2 changed files with 7 additions and 0 deletions
|
@ -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());
|
||||
|
|
|
@ -46,6 +46,8 @@ namespace streamfx::ui {
|
|||
|
||||
void set_url(QUrl url);
|
||||
|
||||
QWidget* cefwidget();
|
||||
|
||||
public:
|
||||
static bool is_available();
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue