summaryrefslogtreecommitdiffstats
path: root/WebKitTools/DumpRenderTree/qt/TextInputControllerQt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebKitTools/DumpRenderTree/qt/TextInputControllerQt.cpp')
-rw-r--r--WebKitTools/DumpRenderTree/qt/TextInputControllerQt.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/WebKitTools/DumpRenderTree/qt/TextInputControllerQt.cpp b/WebKitTools/DumpRenderTree/qt/TextInputControllerQt.cpp
index e0c9b61..08d8850 100644
--- a/WebKitTools/DumpRenderTree/qt/TextInputControllerQt.cpp
+++ b/WebKitTools/DumpRenderTree/qt/TextInputControllerQt.cpp
@@ -133,10 +133,8 @@ void TextInputController::doCommand(const QString& command)
void TextInputController::setMarkedText(const QString& string, int start, int end)
{
QList<QInputMethodEvent::Attribute> attributes;
-#if QT_VERSION >= 0x040600
QInputMethodEvent::Attribute selection(QInputMethodEvent::Selection, start, end, QVariant());
attributes << selection;
-#endif
QInputMethodEvent event(string, attributes);
QApplication::sendEvent(parent(), &event);
}