Changeset 53851 in webkit
- Timestamp:
- Jan 26, 2010, 5:39:43 AM (16 years ago)
- Location:
- trunk/WebKit/qt
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
WebCoreSupport/QtFallbackWebPopup.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/qt/ChangeLog
r53850 r53851 1 2010-01-26 Simon Hausmann <simon.hausmann@nokia.com> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] Show comboboxes on Maemo 5 6 https://bugs.webkit.org/show_bug.cgi?id=34088 7 8 Don't try to show the combobox by simulating a mouse event from QCursor::pos() to 9 get the combobox position right. The position on Maemo 5 is independent from the mouse 10 and there's no QCursor::pos(). 11 12 * WebCoreSupport/QtFallbackWebPopup.cpp: 13 (WebCore::QtFallbackWebPopup::show): 14 1 15 2010-01-26 Jedrzej Nowacki <jedrzej.nowacki@nokia.com> 2 16 -
trunk/WebKit/qt/WebCoreSupport/QtFallbackWebPopup.cpp
r53769 r53851 111 111 } 112 112 113 // QCursor::pos() is not a great idea for a touch screen, but we don't need the coordinates 114 // as comboboxes with Qt on Maemo 5 come up in their full width on the screen. 115 // On the other platforms it's okay to use QCursor::pos(). 116 #if defined(Q_WS_MAEMO_5) 117 m_combo->showPopup(); 118 #else 113 119 QMouseEvent event(QEvent::MouseButtonPress, QCursor::pos(), Qt::LeftButton, 114 120 Qt::LeftButton, Qt::NoModifier); 115 121 QCoreApplication::sendEvent(m_combo, &event); 122 #endif 116 123 } 117 124
Note:
See TracChangeset
for help on using the changeset viewer.