summaryrefslogtreecommitdiffstats
path: root/WebKit/qt/WebCoreSupport/PageClientQt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/qt/WebCoreSupport/PageClientQt.cpp')
-rw-r--r--WebKit/qt/WebCoreSupport/PageClientQt.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/WebKit/qt/WebCoreSupport/PageClientQt.cpp b/WebKit/qt/WebCoreSupport/PageClientQt.cpp
index 62f48ff..ea209d9 100644
--- a/WebKit/qt/WebCoreSupport/PageClientQt.cpp
+++ b/WebKit/qt/WebCoreSupport/PageClientQt.cpp
@@ -48,12 +48,10 @@ bool PageClientQWidget::inputMethodEnabled() const
return view->testAttribute(Qt::WA_InputMethodEnabled);
}
-#if QT_VERSION >= QT_VERSION_CHECK(4, 6, 0)
void PageClientQWidget::setInputMethodHints(Qt::InputMethodHints hints)
{
view->setInputMethodHints(hints);
}
-#endif
#ifndef QT_NO_CURSOR
QCursor PageClientQWidget::cursor() const
@@ -215,26 +213,18 @@ void PageClientQGraphicsWidget::updateTiledBackingStoreScale()
void PageClientQGraphicsWidget::setInputMethodEnabled(bool enable)
{
-#if QT_VERSION >= QT_VERSION_CHECK(4, 6, 0)
view->setFlag(QGraphicsItem::ItemAcceptsInputMethod, enable);
-#endif
}
bool PageClientQGraphicsWidget::inputMethodEnabled() const
{
-#if QT_VERSION >= QT_VERSION_CHECK(4, 6, 0)
return view->flags() & QGraphicsItem::ItemAcceptsInputMethod;
-#else
- return false;
-#endif
}
-#if QT_VERSION >= QT_VERSION_CHECK(4, 6, 0)
void PageClientQGraphicsWidget::setInputMethodHints(Qt::InputMethodHints hints)
{
view->setInputMethodHints(hints);
}
-#endif
#ifndef QT_NO_CURSOR
QCursor PageClientQGraphicsWidget::cursor() const
@@ -318,9 +308,6 @@ QStyle* PageClientQGraphicsWidget::style() const
QRectF PageClientQGraphicsWidget::windowRect() const
{
- if (!view->deviceSize().isEmpty())
- return QRectF(QRect(QPoint(0, 0), view->deviceSize()));
-
if (!view->scene())
return QRectF();