diff options
Diffstat (limited to 'src/webengine/webview.cpp')
-rw-r--r-- | src/webengine/webview.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/webengine/webview.cpp b/src/webengine/webview.cpp index 686a689..d5f88d0 100644 --- a/src/webengine/webview.cpp +++ b/src/webengine/webview.cpp @@ -50,6 +50,14 @@ WebView::~WebView() delete m_pageMenu; } +void WebView::setProfile(WebProfile *profile) +{ + m_profile = profile; + const auto url = this->url(); + setPage(new WebPage(profile, this)); + this->load(url); +} + bool WebView::isLoaded() const { return m_loaded; |