diff options
Diffstat (limited to 'examples/xmlpatterns/filetree/doc/src/filetree.qdoc')
-rw-r--r-- | examples/xmlpatterns/filetree/doc/src/filetree.qdoc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/examples/xmlpatterns/filetree/doc/src/filetree.qdoc b/examples/xmlpatterns/filetree/doc/src/filetree.qdoc index 1ad2c3d..b1204b6 100644 --- a/examples/xmlpatterns/filetree/doc/src/filetree.qdoc +++ b/examples/xmlpatterns/filetree/doc/src/filetree.qdoc @@ -31,7 +31,7 @@ \ingroup xmlpattern_examples This example shows how to use Qt XML Patterns for querying non-XML - data that is modeled to look like XML. + data that is modeled to look like XML. \tableofcontents @@ -108,7 +108,7 @@ \snippet xmlpatterns/filetree/filetree.h 1 The \c{FileTree} class declares four data members: - + \snippet xmlpatterns/filetree/filetree.h 2 The QVector \c{m_fileInfos} will contain the node model. Each @@ -126,7 +126,7 @@ can use. So we must build an analog of the file system in memory from instances of QFileInfo, and we use that analog as the custom node model. - + The two sets of flags, \c{m_filterAllowAll} and \c{m_sortFlags}, contain OR'ed flags from QDir::Filters and QDir::SortFlags respectively. They are set by the \c{FileTree} constructor and used @@ -222,7 +222,7 @@ simple as the ones described so far, but the callback function used for traversing (and building) the node model is more complex. - \section3 Building And Traversing The Node Model + \section3 Building And Traversing The Node Model The node model in \c{FileTree} is not fully built before the query engine begins evaluating the query. In fact, when the query engine @@ -299,7 +299,7 @@ \section2 The UI Class: MainWindow The example's UI is a conventional Qt GUI application inheriting - QMainWindow and the Ui_MainWindow base class generated by + QMainWindow and the Ui_MainWindow base class generated by \l{Qt Designer Manual} {Qt Designer}. \snippet xmlpatterns/filetree/mainwindow.h 0 @@ -360,12 +360,12 @@ The user chooses an XQuery from the menu in the combobox on the right. Choosing an XQuery signals the \c{on_queryBox_currentIndexChanged()} slot: - + \snippet xmlpatterns/filetree/mainwindow.cpp 2 The slot function opens and loads the query file and then calls the private function \c{evaluateResult()} to run the query: - + \snippet xmlpatterns/filetree/mainwindow.cpp 3 \c{evaluateResult()} is a second example of the same code pattern @@ -403,6 +403,6 @@ build the node model incrementally is important, because it allows us to only build the region of the model we need for evaluating the query. In other cases, it will be simpler to just build the entire - node model. + node model. */ |