2009-11-23 David Boddie <dboddie@trolltech.com>
[WebKit-https.git] / WebKit / qt / docs / webkitsnippets / qtwebkit_qwebinspector_snippet.cpp
1
2 void wrapInFunction()
3 {
4
5 //! [0]
6     // ...
7     QWebPage *page = new QWebPage;
8     // ...
9
10     QWebInspector *inspector = new QWebInspector;
11     inspector->setPage(page);
12
13     connect(page, SIGNAL(webInspectorTriggered(QWebElement)), inspector, SLOT(show()));
14 //! [0]
15
16 }
17