Changeset 51308 in webkit


Ignore:
Timestamp:
Nov 23, 2009 7:17:19 AM (14 years ago)
Author:
eric@webkit.org
Message:

2009-11-23 David Boddie <dboddie@trolltech.com>

Reviewed by Simon Hausmann.

Updated the QWebElement documentation with links to examples and
external resources.
Fixed the project file for the webelement snippet and tidied up the
markers used for quoting the code.

  • Api/qwebelement.cpp:
  • docs/webkitsnippets/webelement/main.cpp: (findAll):
  • docs/webkitsnippets/webelement/webelement.pro:
Location:
trunk/WebKit/qt
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/qt/Api/qwebelement.cpp

    r51047 r51308  
    100100    setPlainText() and setInnerXml(). To replace the element itself and its
    101101    contents, use setOuterXml().
     102
     103    \section1 Examples
     104
     105    The \l{DOM Traversal Example} shows one way to traverse documents in a running
     106    example.
     107
     108    The \l{Simple Selector Example} can be used to experiment with the searching
     109    features of this class and provides sample code you can start working with.
    102110*/
    103111
     
    196204    returned.
    197205
    198     \l{http://www.w3.org/TR/REC-CSS2/selector.html#q1}{Standard CSS2 selector}
    199     syntax is used for the query.
     206    \l{Standard CSS2 selector} syntax is used for the query.
    200207
    201208    \note This search is performed recursively.
     
    212219    \a selectorQuery.
    213220
    214     \l{http://www.w3.org/TR/REC-CSS2/selector.html#q1}{Standard CSS2 selector}
    215     syntax is used for the query.
     221    \l{Standard CSS2 selector} syntax is used for the query.
    216222
    217223    \note This search is performed recursively.
  • trunk/WebKit/qt/ChangeLog

    r51306 r51308  
     12009-11-23  David Boddie  <dboddie@trolltech.com>
     2
     3        Reviewed by Simon Hausmann.
     4
     5        Updated the QWebElement documentation with links to examples and
     6        external resources.
     7        Fixed the project file for the webelement snippet and tidied up the
     8        markers used for quoting the code.
     9
     10        * Api/qwebelement.cpp:
     11        * docs/webkitsnippets/webelement/main.cpp:
     12        (findAll):
     13        * docs/webkitsnippets/webelement/webelement.pro:
     14
    1152009-11-23  Simon Hausmann  <simon.hausmann@nokia.com>
    216
  • trunk/WebKit/qt/docs/webkitsnippets/webelement/main.cpp

    r43236 r51308  
    2323#include <qwebframe.h>
    2424#include <qwebelement.h>
    25 #include <qdebug.h>
    2625
    2726static QWebFrame *frame;
     
    5453    */
    5554
     55//! [FindAll intro]
    5656    QList<QWebElement> allSpans = document.findAll("span");
    5757    QList<QWebElement> introSpans = document.findAll("p.intro span");
    58 //! [FindAll]
     58//! [FindAll intro] //! [FindAll]
    5959}
    6060
  • trunk/WebKit/qt/docs/webkitsnippets/webelement/webelement.pro

    r43236 r51308  
    11TEMPLATE = app
    22CONFIG -= app_bundle
     3CONFIG(QTDIR_build) {
     4    QT       += webkit
     5}
    36SOURCES   = main.cpp
    47include(../../../../../WebKit.pri)
Note: See TracChangeset for help on using the changeset viewer.