Title: [96806] trunk/Source/WebKit2
Revision
96806
Author
[email protected]
Date
2011-10-06 06:15:40 -0700 (Thu, 06 Oct 2011)

Log Message

[Qt][WK2] Cursor should change when hovering links or input fields.
https://bugs.webkit.org/show_bug.cgi?id=69519

Reviewed by Simon Hausmann.

This is a temporary fix until Qt5 brings support for changing cursor
per item. This patch enforce the change of the cursor at application
level.

* UIProcess/API/qt/qdesktopwebview.cpp:
(QDesktopWebViewPrivate::didChangeCursor):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (96805 => 96806)


--- trunk/Source/WebKit2/ChangeLog	2011-10-06 13:14:22 UTC (rev 96805)
+++ trunk/Source/WebKit2/ChangeLog	2011-10-06 13:15:40 UTC (rev 96806)
@@ -1,3 +1,17 @@
+2011-10-06  Alexis Menard  <[email protected]>
+
+        [Qt][WK2] Cursor should change when hovering links or input fields.
+        https://bugs.webkit.org/show_bug.cgi?id=69519
+
+        Reviewed by Simon Hausmann.
+
+        This is a temporary fix until Qt5 brings support for changing cursor
+        per item. This patch enforce the change of the cursor at application
+        level.
+
+        * UIProcess/API/qt/qdesktopwebview.cpp:
+        (QDesktopWebViewPrivate::didChangeCursor):
+
 2011-10-06  Zeno Albisser  <[email protected]>
 
         [Qt][WK2][Mac] QtWebProcess should not show up in the Dock.

Modified: trunk/Source/WebKit2/UIProcess/API/qt/qdesktopwebview.cpp (96805 => 96806)


--- trunk/Source/WebKit2/UIProcess/API/qt/qdesktopwebview.cpp	2011-10-06 13:14:22 UTC (rev 96805)
+++ trunk/Source/WebKit2/UIProcess/API/qt/qdesktopwebview.cpp	2011-10-06 13:15:40 UTC (rev 96806)
@@ -36,6 +36,7 @@
 #include <QtGui/QCursor>
 #include <QtGui/QDrag>
 #include <QtGui/QFocusEvent>
+#include <QtGui/QGuiApplication>
 #include <QtGui/QHoverEvent>
 #include <QtGui/QInputMethodEvent>
 #include <QtGui/QKeyEvent>
@@ -141,7 +142,8 @@
 
 void QDesktopWebViewPrivate::didChangeCursor(const QCursor& newCursor)
 {
-    // FIXME: add proper cursor handling when Qt 5 supports it.
+    // FIXME: This is a temporary fix until we get cursor support in QML items.
+    QGuiApplication::setOverrideCursor(newCursor);
 }
 
 void QDesktopWebViewPrivate::loadDidBegin()
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to