Changeset 61480 in webkit
- Timestamp:
- Jun 19, 2010 4:58:18 AM (14 years ago)
- Location:
- trunk/WebKit/qt
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/qt/ChangeLog
r61478 r61480 1 2010-06-19 No'am Rosenthal <noam.rosenthal@nokia.com> 2 3 Reviewed by Simon Hausmann. 4 5 Bridge documentation: some snippets have the wrong indentation 6 https://bugs.webkit.org/show_bug.cgi?id=40717 7 8 Fixed code snippets 9 10 * docs/webkitsnippets/qtwebkit_bridge_snippets.cpp: 11 (wrapInFunction): 12 1 13 2010-06-02 Robert Hogan <robert@webkit.org> 2 14 -
trunk/WebKit/qt/docs/webkitsnippets/qtwebkit_bridge_snippets.cpp
r61058 r61480 13 13 { 14 14 width: ..., 15 16 17 18 15 height: ..., 16 toDataURL: function() { ... }, 17 assignToHTMLImageElement: function(element) { ... } 18 } 19 19 //! [1] 20 20 #endif … … 25 25 26 26 public: 27 27 QPixmap getPixmap() const; 28 28 }; 29 29 … … 37 37 //! [3] 38 38 <html> 39 39 <head> 40 40 <script> 41 function loadImage() { 42 myObject.myPixmap.assignToHTMLImageElement(document.getElementById("imageElement")); 43 } 44 </script> 45 </head> 46 <body onload="loadImage()"> 47 <img id="imageElement" width="300" height="200" /> 48 </body> 49 </html> 50 //! [3] 41 function loadImage() 42 { 43 myObject.myPixmap.assignToHTMLImageElement(document.getElementById("imageElement")); 44 } 45 </script> 46 </head> 47 <body onload="loadImage()"> 48 <img id="imageElement" width="300" height="200" /> 49 </body> 50 </html> 51 //! [3] 51 52 #endif 52 53 53 //! [4] 54 class MyObject : QObject { 54 55 Q_OBJECT 55 56 … … 162 163 //! [24] 163 164 //! [25] 164 myQObject.enabled = true; 165 166 ... 167 168 myQObject.enabled = !myQObject.enabled; 165 myDialog.okButton 169 166 //! [25] 170 167 //! [26]
Note: See TracChangeset
for help on using the changeset viewer.