Changeset 61480 in webkit


Ignore:
Timestamp:
Jun 19, 2010 4:58:18 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-06-19 No'am Rosenthal <noam.rosenthal@nokia.com>

Reviewed by Simon Hausmann.

Bridge documentation: some snippets have the wrong indentation
https://bugs.webkit.org/show_bug.cgi?id=40717

Fixed code snippets

  • docs/webkitsnippets/qtwebkit_bridge_snippets.cpp: (wrapInFunction):
Location:
trunk/WebKit/qt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/qt/ChangeLog

    r61478 r61480  
     12010-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
    1132010-06-02  Robert Hogan  <robert@webkit.org>
    214
  • trunk/WebKit/qt/docs/webkitsnippets/qtwebkit_bridge_snippets.cpp

    r61058 r61480  
    1313    {
    1414        width: ...,
    15             height: ...,
    16                 toDataURL: function() { ... },
    17                     assignToHTMLImageElement: function(element) { ... }
    18         }
     15        height: ...,
     16        toDataURL: function() { ... },
     17        assignToHTMLImageElement: function(element) { ... }
     18    }
    1919    //! [1]
    2020#endif
     
    2525
    2626    public:
    27                 QPixmap getPixmap() const;
     27        QPixmap getPixmap() const;
    2828    };
    2929
     
    3737    //! [3]
    3838    <html>
    39             <head>
     39        <head>
    4040            <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]
    5152#endif
    52                                                                    //! [4]
    53                                                                    class MyObject : QObject {
     53//! [4]
     54class MyObject : QObject {
    5455        Q_OBJECT
    5556
     
    162163    //! [24]
    163164    //! [25]
    164     myQObject.enabled = true;
    165 
    166     ...
    167 
    168     myQObject.enabled = !myQObject.enabled;
     165    myDialog.okButton
    169166    //! [25]
    170167    //! [26]
Note: See TracChangeset for help on using the changeset viewer.