summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMontel Laurent <montel@kde.org>2016-09-04 05:30:01 (GMT)
committerMontel Laurent <montel@kde.org>2016-09-04 05:30:01 (GMT)
commitdf496ed80059612b7f69b47615aa4d3d1eb75599 (patch)
treed0fa67cb3bf160eea8a218839bc74bc685d4e710
parent35adea41f2ef67ad5e55dac4316bf1bc9fcb8f94 (diff)
Remove dead code
-rw-r--r--webengineviewer/src/webengineaccesskey/webengineaccesskey.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/webengineviewer/src/webengineaccesskey/webengineaccesskey.cpp b/webengineviewer/src/webengineaccesskey/webengineaccesskey.cpp
index 5846e7b..332fa5a 100644
--- a/webengineviewer/src/webengineaccesskey/webengineaccesskey.cpp
+++ b/webengineviewer/src/webengineaccesskey/webengineaccesskey.cpp
@@ -75,29 +75,6 @@ public:
WebEngineAccessKey *q;
};
-#if 0
-static bool isEditableElement(QWebPage *page)
-{
- const QWebFrame *frame = (page ? page->currentFrame() : 0);
- QWebElement element = (frame ? frame->findFirstElement(QStringLiteral(":focus")) : QWebElement());
- if (!element.isNull()) {
- const QString tagName(element.tagName());
- if (tagName.compare(QLatin1String("textarea"), Qt::CaseInsensitive) == 0) {
- return true;
- }
- const QString type(element.attribute(QStringLiteral("type")).toLower());
- if (tagName.compare(QLatin1String("input"), Qt::CaseInsensitive) == 0
- && (type.isEmpty() || type == QLatin1String("text") || type == QLatin1String("password"))) {
- return true;
- }
- if (element.evaluateJavaScript(QStringLiteral("this.isContentEditable")).toBool()) {
- return true;
- }
- }
- return false;
-}
-
-#endif
static QString linkElementKey(const WebEngineViewer::WebEngineAccessKeyAnchor &element, const QUrl &baseUrl)
{
//qDebug()<<" element.href()"<<element.href();