Changeset 56980 in webkit


Ignore:
Timestamp:
Apr 2, 2010 12:39:29 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-02 Luiz Agostini <luiz.agostini@openbossa.org>

Reviewed by Kenneth Rohde Christiansen.

[Qt] Maemo5 theme - customized popup for <select multiple> elements
https://bugs.webkit.org/show_bug.cgi?id=36368

Using QtMaemoWebPopup instead of QtFallbackWebPopup for Maemo.

  • WebCoreSupport/ChromeClientQt.cpp: (WebCore::ChromeClientQt::createSelectPopup):
  • WebCoreSupport/QtFallbackWebPopup.cpp: (WebCore::QtFallbackWebPopup::show): (WebCore::QtFallbackWebPopup::populate):
Location:
trunk/WebKit/qt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/qt/ChangeLog

    r56929 r56980  
     12010-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
    1162010-04-01  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
    217
  • trunk/WebKit/qt/WebCoreSupport/ChromeClientQt.cpp

    r56740 r56980  
    4242#include "WindowFeatures.h"
    4343#include "DatabaseTracker.h"
     44#if defined(Q_WS_MAEMO_5)
     45#include "QtMaemoWebPopup.h"
     46#else
    4447#include "QtFallbackWebPopup.h"
     48#endif
    4549#include "QWebPageClient.h"
    4650#include "SecurityOrigin.h"
     
    543547QtAbstractWebPopup* ChromeClientQt::createSelectPopup()
    544548{
     549#if defined(Q_WS_MAEMO_5)
     550    return new QtMaemoWebPopup;
     551#else
    545552    return new QtFallbackWebPopup;
     553#endif
    546554}
    547555
  • trunk/WebKit/qt/WebCoreSupport/QtFallbackWebPopup.cpp

    r56424 r56980  
    109109    m_combo->setCurrentIndex(currentIndex());
    110110
    111 #if defined(Q_WS_MAEMO_5)
    112     // Comboboxes with Qt on Maemo 5 come up in their full width on the screen, so neither
    113     // the proxy widget, nor the coordinates are needed.
    114     m_combo->setParent(pageClient()->ownerWidget());
    115     m_combo->showPopup();
    116     return;
    117 #endif
    118 
    119111    QRect rect = geometry();
    120112    if (QGraphicsWebView *webView = qobject_cast<QGraphicsWebView*>(pageClient()->pluginParent())) {
     
    132124    }
    133125
    134     // QCursor::pos() is not a great idea for a touch screen, but as Maemo 5 is handled
    135     // separately above, this should be okay.
    136126    QMouseEvent event(QEvent::MouseButtonPress, QCursor::pos(), Qt::LeftButton,
    137127                      Qt::LeftButton, Qt::NoModifier);
     
    205195    Q_ASSERT(model);
    206196
    207 #if !defined(Q_WS_S60) && !defined(Q_WS_MAEMO_5)
     197#if !defined(Q_WS_S60)
    208198    m_combo->setFont(font());
    209199#endif
Note: See TracChangeset for help on using the changeset viewer.