RESOLVED FIXED91645
[Qt][WK2] Map the elementRect exposed in QML to the view for popup menu
https://bugs.webkit.org/show_bug.cgi?id=91645
Summary [Qt][WK2] Map the elementRect exposed in QML to the view for popup menu
Pierre Rossi
Reported 2012-07-18 11:29:58 PDT
[Qt][WK2] Map the elementRect exposed in QML to the view for popup menu
Attachments
Patch (5.06 KB, patch)
2012-07-18 11:34 PDT, Pierre Rossi
no flags
Patch (5.08 KB, patch)
2012-07-19 06:40 PDT, Pierre Rossi
no flags
Pierre Rossi
Comment 1 2012-07-18 11:34:27 PDT
Simon Hausmann
Comment 2 2012-07-19 02:05:05 PDT
Comment on attachment 153057 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=153057&action=review > Source/WebKit2/UIProcess/qt/WebPopupMenuProxyQt.cpp:102 > Q_PROPERTY(QObject* items READ items CONSTANT FINAL) > > public: > - ItemSelectorContextObject(const IntRect& elementRect, const Vector<WebPopupItem>&, int selectedIndex); > + ItemSelectorContextObject(const QRectF& elementRect, const Vector<WebPopupItem>&, int selectedIndex); > > - QRect elementRect() const { return m_elementRect; } > + QRectF elementRect() const { return m_elementRect; } > PopupMenuItemModel* items() { return &m_items; } > > + Q_INVOKABLE int itemCount() const { return m_items.rowCount(); } I think there's an API problem here, that's strictly speaking unrelated to your patch. If "items" is the model, then shouldn't it be called "model" perhaps? Anyway, I don't think itemCount() should be an invokable method. Instead all models in QML seem to have a "count" _property_ instead, and I think that's what we should have, too.
Pierre Rossi
Comment 3 2012-07-19 06:40:50 PDT
WebKit Review Bot
Comment 4 2012-07-19 07:59:46 PDT
Comment on attachment 153246 [details] Patch Clearing flags on attachment: 153246 Committed r123103: <http://trac.webkit.org/changeset/123103>
WebKit Review Bot
Comment 5 2012-07-19 07:59:51 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.