summaryrefslogtreecommitdiff
path: root/Source/WebKit/qt/Api/qwebview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit/qt/Api/qwebview.cpp')
-rw-r--r--Source/WebKit/qt/Api/qwebview.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/Source/WebKit/qt/Api/qwebview.cpp b/Source/WebKit/qt/Api/qwebview.cpp
index a6082cf63..f90790f0c 100644
--- a/Source/WebKit/qt/Api/qwebview.cpp
+++ b/Source/WebKit/qt/Api/qwebview.cpp
@@ -34,10 +34,8 @@
#include "qdir.h"
#include "qfile.h"
#ifndef QT_NO_ACCESSIBILITY
-#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
#include "qwebviewaccessible_p.h"
#endif
-#endif
class QWebViewPrivate {
public:
@@ -154,7 +152,6 @@ void QWebViewPrivate::_q_pageDestroyed()
*/
#ifndef QT_NO_ACCESSIBILITY
-#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
static QAccessibleInterface* accessibleInterfaceFactory(const QString& key, QObject* object)
{
Q_UNUSED(key)
@@ -168,7 +165,6 @@ static QAccessibleInterface* accessibleInterfaceFactory(const QString& key, QObj
return 0;
}
#endif
-#endif
/*!
Constructs an empty QWebView with parent \a parent.
@@ -191,10 +187,8 @@ QWebView::QWebView(QWidget *parent)
setFocusPolicy(Qt::WheelFocus);
#ifndef QT_NO_ACCESSIBILITY
-#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0)
QAccessible::installFactory(accessibleInterfaceFactory);
#endif
-#endif
}
/*!
@@ -732,9 +726,7 @@ bool QWebView::event(QEvent *e)
} else if (e->type() == QEvent::TouchBegin
|| e->type() == QEvent::TouchEnd
|| e->type() == QEvent::TouchUpdate
-#if HAVE(QT5)
|| e->type() == QEvent::TouchCancel
-#endif
) {
d->page->event(e);