diff options
Diffstat (limited to 'Source/WebKit/qt/WidgetApi/qwebframe.cpp')
-rw-r--r-- | Source/WebKit/qt/WidgetApi/qwebframe.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/WebKit/qt/WidgetApi/qwebframe.cpp b/Source/WebKit/qt/WidgetApi/qwebframe.cpp index f3e563cb5..27cc73989 100644 --- a/Source/WebKit/qt/WidgetApi/qwebframe.cpp +++ b/Source/WebKit/qt/WidgetApi/qwebframe.cpp @@ -1217,6 +1217,17 @@ QUrl QWebHitTestResult::imageUrl() const } /*! + Returns the url of the video or audio element. + \since 5.2 +*/ +QUrl QWebHitTestResult::mediaUrl() const +{ + if (!d) + return QUrl(); + return d->mediaUrl; +} + +/*! Returns a QPixmap containing the image. A null pixmap is returned if the element being tested is not an image. */ |