Changeset 53851 in webkit


Ignore:
Timestamp:
Jan 26, 2010, 5:39:43 AM (16 years ago)
Author:
eric@webkit.org
Message:

2010-01-26 Simon Hausmann <simon.hausmann@nokia.com>

Reviewed by Kenneth Rohde Christiansen.

[Qt] Show comboboxes on Maemo 5
https://bugs.webkit.org/show_bug.cgi?id=34088

Don't try to show the combobox by simulating a mouse event from QCursor::pos() to
get the combobox position right. The position on Maemo 5 is independent from the mouse
and there's no QCursor::pos().

  • WebCoreSupport/QtFallbackWebPopup.cpp: (WebCore::QtFallbackWebPopup::show):
Location:
trunk/WebKit/qt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/qt/ChangeLog

    r53850 r53851  
     12010-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
    1152010-01-26  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>
    216
  • trunk/WebKit/qt/WebCoreSupport/QtFallbackWebPopup.cpp

    r53769 r53851  
    111111    }
    112112
     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
    113119    QMouseEvent event(QEvent::MouseButtonPress, QCursor::pos(), Qt::LeftButton,
    114120                      Qt::LeftButton, Qt::NoModifier);
    115121    QCoreApplication::sendEvent(m_combo, &event);
     122#endif
    116123}
    117124
Note: See TracChangeset for help on using the changeset viewer.