14#include <QTextBrowser>
35 bool NavBarVisible_ =
true;
36 bool EverythingElseVisible_ =
true;
38 using QTextBrowser_ptr = std::unique_ptr<QTextBrowser>;
39 using IWebWidget_ptr = std::unique_ptr<IWebWidget>;
40 std::variant<QTextBrowser_ptr, IWebWidget_ptr> Browser_;
76 void SetHtml (
const QString& html,
const QUrl& base = QUrl ());
104 void PrepareInternal ();
Base class for plugins that provide a web browser.
void SetHtml(const QString &html, const QUrl &base=QUrl())
Sets the HTML content to display.
void SetEverythingElseVisible(bool visible)
Sets whether other UI elements should be visible.
void SetNavBarVisible(bool visible)
Sets whether navigation bar should be visible.
SelectableBrowser(QWidget *parent=nullptr)
Constructs the browser with the given parent.
void Construct(IWebBrowser *browser)
Initialize the widget with the browser plugin.