7#include "webengineaccesskeyanchor.h"
9using namespace WebEngineViewer;
11WebEngineAccessKeyAnchor::WebEngineAccessKeyAnchor(
const QVariant &result)
16WebEngineAccessKeyAnchor::WebEngineAccessKeyAnchor() =
default;
18void WebEngineAccessKeyAnchor::initialize(
const QVariant &result)
21 const QVariantMap
map = result.
toMap();
22 const QVariantList &rect =
map.value(QStringLiteral(
"boundingRect")).toList();
23 if (rect.size() == 4) {
24 mBoundingRect =
QRect(rect.at(0).toInt(), rect.at(1).toInt(), rect.at(2).toInt(), rect.at(3).toInt());
26 mHref =
map.value(QStringLiteral(
"src")).toString();
27 mAccessKey =
map.value(QStringLiteral(
"accessKey")).toString();
28 mTarget =
map.value(QStringLiteral(
"target")).toString();
29 mTagName =
map.value(QStringLiteral(
"tagName")).toString();
30 mInnerText =
map.value(QStringLiteral(
"text")).toString();
34QString WebEngineAccessKeyAnchor::innerText()
const
39QString WebEngineAccessKeyAnchor::tagName()
const
44QString WebEngineAccessKeyAnchor::target()
const
49QString WebEngineAccessKeyAnchor::href()
const
54QString WebEngineAccessKeyAnchor::accessKey()
const
59QRect WebEngineAccessKeyAnchor::boundingRect()
const
QFuture< void > map(Iterator begin, Iterator end, MapFunctor &&function)
bool isValid() const const
QMap< QString, QVariant > toMap() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:25 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.