nativeWidget()
* This should be safe even with plugins as the cursor is set
on the mouse events.
Signed-Off-By: Lars
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29528
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2008-01-16 Holger Hans Peter Freyther <holger.freyther@trolltech.com>
+
+ Reviewed by Lars.
+
+ * Set the cursor on the containingWindow() instead of the
+ nativeWidget()
+ * This should be safe even with plugins as the cursor is set
+ on the mouse events.
+
+ * platform/qt/WidgetQt.cpp:
+ (WebCore::Widget::setCursor):
+
2008-01-16 Brad Hughes <bhughes@trolltech.com>
Reviewed by Lars.
void Widget::setCursor(const Cursor& cursor)
{
#ifndef QT_NO_CURSOR
- if (data->m_widget)
- data->m_widget->setCursor(cursor.impl());
+ if (QWidget* widget = containingWindow())
+ widget->setCursor(cursor.impl());
#endif
}