Changeset 56980 in webkit
- Timestamp:
- Apr 2, 2010 12:39:29 AM (14 years ago)
- Location:
- trunk/WebKit/qt
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/qt/ChangeLog
r56929 r56980 1 2010-04-02 Luiz Agostini <luiz.agostini@openbossa.org> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] Maemo5 theme - customized popup for <select multiple> elements 6 https://bugs.webkit.org/show_bug.cgi?id=36368 7 8 Using QtMaemoWebPopup instead of QtFallbackWebPopup for Maemo. 9 10 * WebCoreSupport/ChromeClientQt.cpp: 11 (WebCore::ChromeClientQt::createSelectPopup): 12 * WebCoreSupport/QtFallbackWebPopup.cpp: 13 (WebCore::QtFallbackWebPopup::show): 14 (WebCore::QtFallbackWebPopup::populate): 15 1 16 2010-04-01 Jesus Sanchez-Palencia <jesus.palencia@openbossa.org> 2 17 -
trunk/WebKit/qt/WebCoreSupport/ChromeClientQt.cpp
r56740 r56980 42 42 #include "WindowFeatures.h" 43 43 #include "DatabaseTracker.h" 44 #if defined(Q_WS_MAEMO_5) 45 #include "QtMaemoWebPopup.h" 46 #else 44 47 #include "QtFallbackWebPopup.h" 48 #endif 45 49 #include "QWebPageClient.h" 46 50 #include "SecurityOrigin.h" … … 543 547 QtAbstractWebPopup* ChromeClientQt::createSelectPopup() 544 548 { 549 #if defined(Q_WS_MAEMO_5) 550 return new QtMaemoWebPopup; 551 #else 545 552 return new QtFallbackWebPopup; 553 #endif 546 554 } 547 555 -
trunk/WebKit/qt/WebCoreSupport/QtFallbackWebPopup.cpp
r56424 r56980 109 109 m_combo->setCurrentIndex(currentIndex()); 110 110 111 #if defined(Q_WS_MAEMO_5)112 // Comboboxes with Qt on Maemo 5 come up in their full width on the screen, so neither113 // the proxy widget, nor the coordinates are needed.114 m_combo->setParent(pageClient()->ownerWidget());115 m_combo->showPopup();116 return;117 #endif118 119 111 QRect rect = geometry(); 120 112 if (QGraphicsWebView *webView = qobject_cast<QGraphicsWebView*>(pageClient()->pluginParent())) { … … 132 124 } 133 125 134 // QCursor::pos() is not a great idea for a touch screen, but as Maemo 5 is handled135 // separately above, this should be okay.136 126 QMouseEvent event(QEvent::MouseButtonPress, QCursor::pos(), Qt::LeftButton, 137 127 Qt::LeftButton, Qt::NoModifier); … … 205 195 Q_ASSERT(model); 206 196 207 #if !defined(Q_WS_S60) && !defined(Q_WS_MAEMO_5)197 #if !defined(Q_WS_S60) 208 198 m_combo->setFont(font()); 209 199 #endif
Note: See TracChangeset
for help on using the changeset viewer.