diff options
author | Venugopal Shivashankar <venugopal.shivashankar@digia.com> | 2012-12-17 16:36:06 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-12-17 17:39:00 +0100 |
commit | 3e5b10ab5a4b6be7e71dd03c601067908048eedd (patch) | |
tree | 662b76c5ac907bf258efa9198fecdc21e83b7a35 /examples/webkitwidgets/fancybrowser | |
parent | 544fa3c1c405b951dff132ed0f4bd168d3c8b67f (diff) | |
download | qtwebkit-examples-3e5b10ab5a4b6be7e71dd03c601067908048eedd.tar.gz |
Doc: Fixed the \snippet paths in the example documentationv5.0.0
The \snippet paths in the WebKit widget example documents
now reflect the new directory structure of the examples.
Task-number: QTBUG-27515
Change-Id: I6153f7728cc6217a38a62bb04a7bfe3794823e2a
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Diffstat (limited to 'examples/webkitwidgets/fancybrowser')
-rw-r--r-- | examples/webkitwidgets/fancybrowser/doc/src/fancybrowser.qdoc | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/examples/webkitwidgets/fancybrowser/doc/src/fancybrowser.qdoc b/examples/webkitwidgets/fancybrowser/doc/src/fancybrowser.qdoc index 74e76f1..808505c 100644 --- a/examples/webkitwidgets/fancybrowser/doc/src/fancybrowser.qdoc +++ b/examples/webkitwidgets/fancybrowser/doc/src/fancybrowser.qdoc @@ -46,7 +46,7 @@ The \c MainWindow class inherits QMainWindow. It implements a number of slots to perform actions on both the application and on the web content. - \snippet fancybrowser/mainwindow.h 1 + \snippet webkitwidgets/fancybrowser/mainwindow.h 1 We also declare a QString that contains the jQuery, a QWebView that displays the web content, and a QLineEdit that acts as the @@ -56,7 +56,7 @@ We start by implementing the constructor. - \snippet fancybrowser/mainwindow.cpp 1 + \snippet webkitwidgets/fancybrowser/mainwindow.cpp 1 The first part of the constructor sets the value of \c progress to 0. This value will be used later in the code to visualize the @@ -66,7 +66,7 @@ content. The jQuery library is a JavaScript library that provides different functions for manipulating HTML. - \snippet fancybrowser/mainwindow.cpp 2 + \snippet webkitwidgets/fancybrowser/mainwindow.cpp 2 The second part of the constructor creates a QWebView and connects slots to the views signals. Furthermore, we create a QLineEdit as @@ -75,13 +75,13 @@ QLineEdit to a QToolbar together with a set of navigation actions from QWebView::pageAction. - \snippet fancybrowser/mainwindow.cpp 3 + \snippet webkitwidgets/fancybrowser/mainwindow.cpp 3 The third and last part of the constructor implements two QMenus and assigns a set of actions to them. The last line sets the QWebView as the central widget in the QMainWindow. - \snippet fancybrowser/mainwindow.cpp 4 + \snippet webkitwidgets/fancybrowser/mainwindow.cpp 4 When the page is loaded, \c adjustLocation() updates the address bar; \c adjustLocation() is triggered by the \c loadFinished() @@ -90,13 +90,13 @@ the new web page has finished loading, \c adjustLocation() will be run once more to update the address bar. - \snippet fancybrowser/mainwindow.cpp 5 + \snippet webkitwidgets/fancybrowser/mainwindow.cpp 5 \c adjustTitle() sets the window title and displays the loading progress. This slot is triggered by the \c titleChanged() signal in QWebView. - \snippet fancybrowser/mainwindow.cpp 6 + \snippet webkitwidgets/fancybrowser/mainwindow.cpp 6 When a web page has loaded, \c finishLoading() is triggered by the \c loadFinished() signal in QWebView. \c finishLoading() then updates the @@ -111,7 +111,7 @@ that the images of the newly loaded page respect the state of the toggle action. - \snippet fancybrowser/mainwindow.cpp 7 + \snippet webkitwidgets/fancybrowser/mainwindow.cpp 7 The first jQuery-based function, \c highlightAllLinks(), is designed to highlight all links in the current webpage. The JavaScript code looks @@ -119,14 +119,14 @@ For each such element, the background color is set to be yellow by using CSS. - \snippet fancybrowser/mainwindow.cpp 8 + \snippet webkitwidgets/fancybrowser/mainwindow.cpp 8 The \c rotateImages() function rotates the images on the current web page. Webkit supports CSS transforms and this JavaScript code looks up all \e {img} elements and rotates the images 180 degrees and then back again. - \snippet fancybrowser/mainwindow.cpp 9 + \snippet webkitwidgets/fancybrowser/mainwindow.cpp 9 The remaining four methods remove different elements from the current web page. \c removeGifImages() removes all GIF images on the page by looking up |