summaryrefslogtreecommitdiffstats
path: root/src/3rdparty
diff options
context:
space:
mode:
authorQt Continuous Integration System <qt-info@nokia.com>2010-09-06 12:18:07 (GMT)
committerQt Continuous Integration System <qt-info@nokia.com>2010-09-06 12:18:07 (GMT)
commitb79f79399dac8a3e16c7d1a3724965b3e166f46c (patch)
tree975516643c5b9861034d81b8ab4500d27716e7c0 /src/3rdparty
parentfded09d4e2983d7eed82c9fa5b678f70074473ba (diff)
parentc3848a886448a15ae87801099849018d761026ed (diff)
downloadQt-b79f79399dac8a3e16c7d1a3724965b3e166f46c.zip
Qt-b79f79399dac8a3e16c7d1a3724965b3e166f46c.tar.gz
Qt-b79f79399dac8a3e16c7d1a3724965b3e166f46c.tar.bz2
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/qt-qml into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/qt-qml: Fix AnchorAnimation for multiple AnchorChanges with dependancies. Fix recording of QML visual tests when using a QGLWidget viewport. Fix PathView item position on insertion and removal. Small cleanup Ensure WebView gets focus when an editable node is clicked on. Ensure slider is updated when screen size changes. Do not reset sourceSize when changing image source url. Ensure all image state is updated before emitting changed signals.
Diffstat (limited to 'src/3rdparty')
-rw-r--r--src/3rdparty/webkit/WebKit/qt/declarative/qdeclarativewebview.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/3rdparty/webkit/WebKit/qt/declarative/qdeclarativewebview.cpp b/src/3rdparty/webkit/WebKit/qt/declarative/qdeclarativewebview.cpp
index c1ca23d..2d74d4b 100644
--- a/src/3rdparty/webkit/WebKit/qt/declarative/qdeclarativewebview.cpp
+++ b/src/3rdparty/webkit/WebKit/qt/declarative/qdeclarativewebview.cpp
@@ -91,7 +91,6 @@ GraphicsWebView::GraphicsWebView(QDeclarativeWebView* parent)
void GraphicsWebView::mousePressEvent(QGraphicsSceneMouseEvent* event)
{
- setFocus();
pressPoint = event->pos();
if (pressTime) {
pressTimer.start(pressTime, this);
@@ -101,6 +100,11 @@ void GraphicsWebView::mousePressEvent(QGraphicsSceneMouseEvent* event)
parent->setKeepMouseGrab(true);
}
QGraphicsWebView::mousePressEvent(event);
+
+ QWebHitTestResult hit = page()->mainFrame()->hitTestContent(pressPoint.toPoint());
+ if (hit.isContentEditable())
+ parent->forceActiveFocus();
+ setFocus();
}
void GraphicsWebView::mouseReleaseEvent(QGraphicsSceneMouseEvent* event)