diff options
author | Jocelyn Turcotte <jocelyn.turcotte@digia.com> | 2014-02-10 17:58:18 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-02-13 14:28:04 +0100 |
commit | 9cf0007b6ff49305550754babaeb67eb85c8d5ef (patch) | |
tree | 9120ed29dc1a5a80411564d1a3c82afb48d0a669 /src/core/web_contents_adapter.cpp | |
parent | 9df1c50119847d960e07ecb98597435c91ac5e30 (diff) |
Implement QWebEnginePage::selectedText
Change-Id: Idebde8da0befbea7ccc5942de1e09fcc61ce16d4
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/core/web_contents_adapter.cpp')
-rw-r--r-- | src/core/web_contents_adapter.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/web_contents_adapter.cpp b/src/core/web_contents_adapter.cpp index ea360dc99..82d6ed26f 100644 --- a/src/core/web_contents_adapter.cpp +++ b/src/core/web_contents_adapter.cpp @@ -319,6 +319,12 @@ QString WebContentsAdapter::pageTitle() const return entry ? toQt(entry->GetTitle()) : QString(); } +QString WebContentsAdapter::selectedText() const +{ + Q_D(const WebContentsAdapter); + return toQt(d->webContents->GetRenderViewHost()->GetView()->GetSelectedText()); +} + void WebContentsAdapter::navigateToIndex(int offset) { Q_D(WebContentsAdapter); |