Title: [136083] trunk/Source/WebKit2
Revision
136083
Author
ser...@webkit.org
Date
2012-11-28 18:24:31 -0800 (Wed, 28 Nov 2012)

Log Message

[WK2][Qt] Add drag&drop support to Flickable webView
https://bugs.webkit.org/show_bug.cgi?id=100778

Reviewed by Jocelyn Turcotte.

Enable the ItemAcceptsDrops flag in the flickable WebView. This
will allow the WebView to receive drag&drop events.

* UIProcess/API/qt/qquickwebview.cpp:
(QQuickWebViewPrivate::initialize):

Modified Paths

Diff

Modified: trunk/Source/WebKit2/ChangeLog (136082 => 136083)


--- trunk/Source/WebKit2/ChangeLog	2012-11-29 02:21:57 UTC (rev 136082)
+++ trunk/Source/WebKit2/ChangeLog	2012-11-29 02:24:31 UTC (rev 136083)
@@ -1,3 +1,16 @@
+2012-11-28  Sergio Villar Senin  <svil...@igalia.com>
+
+        [WK2][Qt] Add drag&drop support to Flickable webView
+        https://bugs.webkit.org/show_bug.cgi?id=100778
+
+        Reviewed by Jocelyn Turcotte.
+
+        Enable the ItemAcceptsDrops flag in the flickable WebView. This
+        will allow the WebView to receive drag&drop events.
+
+        * UIProcess/API/qt/qquickwebview.cpp:
+        (QQuickWebViewPrivate::initialize):
+
 2012-11-28  Shinya Kawanaka  <shin...@chromium.org>
 
         [Shadow] Move Distribution stuffs from ShadowRoot

Modified: trunk/Source/WebKit2/UIProcess/API/qt/qquickwebview.cpp (136082 => 136083)


--- trunk/Source/WebKit2/UIProcess/API/qt/qquickwebview.cpp	2012-11-29 02:21:57 UTC (rev 136082)
+++ trunk/Source/WebKit2/UIProcess/API/qt/qquickwebview.cpp	2012-11-29 02:24:31 UTC (rev 136083)
@@ -325,6 +325,7 @@
 
     q_ptr->setAcceptedMouseButtons(Qt::MouseButtonMask);
     q_ptr->setAcceptHoverEvents(true);
+    q_ptr->setFlags(QQuickItem::ItemAcceptsDrops);
 }
 
 void QQuickWebViewPrivate::loadDidStop()
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to