![]() |
Falkon Develop
Cross-platform Qt-based web browser
|
The class exposing result of WebHitTest to QML. More...
#include <qmlwebhittestresult.h>
Public Member Functions | |
QmlWebHitTestResult (const WebHitTestResult &webHitTestResult, QObject *parent=nullptr) | |
Q_INVOKABLE bool | isImage () const |
Checks if the context menu is requested on image. More... | |
Q_INVOKABLE bool | isContentEditable () const |
Checks if the context menu is requested on editable content. More... | |
Q_INVOKABLE bool | isContentSelected () const |
Checks if the context menu is requested on the selected content. More... | |
Q_INVOKABLE bool | isNull () const |
Checks if the context menu is requested on null element. More... | |
Q_INVOKABLE bool | isLink () const |
Checks if the context menu is requested on a link. More... | |
Q_INVOKABLE bool | isMedia () const |
Checks if the context menu is requested on a media element. More... | |
Q_INVOKABLE bool | mediaPaused () const |
Checks if the context menu requested on media element is paused. More... | |
Q_INVOKABLE bool | mediaMuted () const |
Checks if the context menu requested on media element is muted. More... | |
QString | tagName () const |
QString | baseUrl () const |
QString | linkTitle () const |
QString | linkUrl () const |
QString | imageUrl () const |
QString | mediaUrl () const |
QPoint | pos () const |
QPointF | viewportPos () const |
Properties | |
QString | tagName |
Gets the tagName of the element on which the context menu is requested. More... | |
QString | baseUrl |
Gets the base url on which the context menu is requested. More... | |
QString | linkTitle |
Gets the link title on which the context menu is requested. More... | |
QString | linkUrl |
Gets the link url on which the context menu is requested. More... | |
QString | imageUrl |
Gets the url of image on which the context menu is requested. More... | |
QString | mediaUrl |
Gets the url of media on which the context menu is requested. More... | |
QPoint | pos |
Gets the position at which the context menu is requested. More... | |
QPointF | viewportPos |
Gets the viewport position at which the context menu is requested. More... | |
The class exposing result of WebHitTest to QML.
Definition at line 26 of file qmlwebhittestresult.h.
|
explicit |
Definition at line 21 of file qmlwebhittestresult.cpp.
QString QmlWebHitTestResult::baseUrl | ( | ) | const |
Definition at line 73 of file qmlwebhittestresult.cpp.
QString QmlWebHitTestResult::imageUrl | ( | ) | const |
Definition at line 90 of file qmlwebhittestresult.cpp.
bool QmlWebHitTestResult::isContentEditable | ( | ) | const |
Checks if the context menu is requested on editable content.
Definition at line 33 of file qmlwebhittestresult.cpp.
bool QmlWebHitTestResult::isContentSelected | ( | ) | const |
Checks if the context menu is requested on the selected content.
Definition at line 38 of file qmlwebhittestresult.cpp.
bool QmlWebHitTestResult::isImage | ( | ) | const |
Checks if the context menu is requested on image.
Definition at line 28 of file qmlwebhittestresult.cpp.
bool QmlWebHitTestResult::isLink | ( | ) | const |
Checks if the context menu is requested on a link.
Definition at line 48 of file qmlwebhittestresult.cpp.
bool QmlWebHitTestResult::isMedia | ( | ) | const |
Checks if the context menu is requested on a media element.
Definition at line 53 of file qmlwebhittestresult.cpp.
bool QmlWebHitTestResult::isNull | ( | ) | const |
Checks if the context menu is requested on null element.
Definition at line 43 of file qmlwebhittestresult.cpp.
QString QmlWebHitTestResult::linkTitle | ( | ) | const |
Definition at line 79 of file qmlwebhittestresult.cpp.
QString QmlWebHitTestResult::linkUrl | ( | ) | const |
Definition at line 84 of file qmlwebhittestresult.cpp.
bool QmlWebHitTestResult::mediaMuted | ( | ) | const |
Checks if the context menu requested on media element is muted.
Definition at line 63 of file qmlwebhittestresult.cpp.
bool QmlWebHitTestResult::mediaPaused | ( | ) | const |
Checks if the context menu requested on media element is paused.
Definition at line 58 of file qmlwebhittestresult.cpp.
QString QmlWebHitTestResult::mediaUrl | ( | ) | const |
Definition at line 96 of file qmlwebhittestresult.cpp.
QPoint QmlWebHitTestResult::pos | ( | ) | const |
Definition at line 102 of file qmlwebhittestresult.cpp.
QString QmlWebHitTestResult::tagName | ( | ) | const |
Definition at line 68 of file qmlwebhittestresult.cpp.
QPointF QmlWebHitTestResult::viewportPos | ( | ) | const |
Definition at line 107 of file qmlwebhittestresult.cpp.
|
read |
Gets the base url on which the context menu is requested.
Definition at line 1 of file qmlwebhittestresult.h.
|
read |
Gets the url of image on which the context menu is requested.
Definition at line 1 of file qmlwebhittestresult.h.
|
read |
Gets the link title on which the context menu is requested.
Definition at line 1 of file qmlwebhittestresult.h.
|
read |
Gets the link url on which the context menu is requested.
Definition at line 1 of file qmlwebhittestresult.h.
|
read |
Gets the url of media on which the context menu is requested.
Definition at line 1 of file qmlwebhittestresult.h.
|
read |
Gets the position at which the context menu is requested.
Definition at line 1 of file qmlwebhittestresult.h.
|
read |
Gets the tagName of the element on which the context menu is requested.
Definition at line 1 of file qmlwebhittestresult.h.
|
read |
Gets the viewport position at which the context menu is requested.
Definition at line 1 of file qmlwebhittestresult.h.