Bug 70693

Summary: [Qt][WK2] QDesktopWebView and QTouchWebView should be declared in the meta type system.
Product: WebKit Reporter: Zeno Albisser <zeno>
Component: WebKit QtAssignee: Zeno Albisser <zeno>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 70315    
Attachments:
Description Flags
patch for review.
vestbo: review-
patch for review. none

Description Zeno Albisser 2011-10-23 05:58:19 PDT
Without that we cannot use these types in the template based functions of the meta type system. (QVariant)

If we instantiate a QDesktopWebView or a QTouchWebView in QML but want to acess it also in C++, then we need to ask the meta type system in c++ for the type of the object.
Comment 1 Zeno Albisser 2011-10-23 06:05:22 PDT
Created attachment 112109 [details]
patch for review.

is there a good reason why we should not do that?
Comment 2 Tor Arne Vestbø 2011-10-23 12:49:16 PDT
Comment on attachment 112109 [details]
patch for review.

Yepp, this is the place we should do it. But it should be QML_DECLARE_TYPE(QTouchWebView), to get the pointer automatically and cover the list-usecase.

http://doc.qt.nokia.com/4.7-snapshot/qdeclarativeengine.html#QML_DECLARE_TYPE
Comment 3 Zeno Albisser 2011-10-23 13:51:01 PDT
Created attachment 112125 [details]
patch for review.
Comment 4 Simon Hausmann 2011-10-25 05:31:08 PDT
Comment on attachment 112125 [details]
patch for review.

r=me
Comment 5 WebKit Review Bot 2011-10-25 06:37:36 PDT
Comment on attachment 112125 [details]
patch for review.

Clearing flags on attachment: 112125

Committed r98337: <http://trac.webkit.org/changeset/98337>
Comment 6 WebKit Review Bot 2011-10-25 06:37:39 PDT
All reviewed patches have been landed.  Closing bug.