diff options
author | Liang QI <liang.qi@nokia.com> | 2009-09-18 15:06:06 (GMT) |
---|---|---|
committer | Liang QI <liang.qi@nokia.com> | 2009-09-18 15:06:06 (GMT) |
commit | 8212300e723d08802e890a59f8483521840fa655 (patch) | |
tree | a95065d643b822adba9f9fe7c4b6dd18a21de97a | |
parent | 9446b1745196acc7a6693b4ca2ca169f51fef97b (diff) | |
parent | 4aaec357acd92046103836e760af941de5c53c93 (diff) | |
download | Qt-8212300e723d08802e890a59f8483521840fa655.zip Qt-8212300e723d08802e890a59f8483521840fa655.tar.gz Qt-8212300e723d08802e890a59f8483521840fa655.tar.bz2 |
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/qt into 4.6
-rw-r--r-- | doc/src/external-resources.qdoc | 10 | ||||
-rw-r--r-- | doc/src/getting-started/how-to-learn-qt.qdoc | 52 | ||||
-rw-r--r-- | doc/src/qt-webpages.qdoc | 2 | ||||
-rw-r--r-- | doc/src/snippets/code/doc_src_qtxmlpatterns.qdoc | 78 | ||||
-rw-r--r-- | doc/src/snippets/widgets-tutorial/template.cpp | 2 | ||||
-rw-r--r-- | doc/src/tutorials/widgets-tutorial.qdoc | 2 | ||||
-rw-r--r-- | doc/src/xml-processing/xquery-introduction.qdoc | 40 | ||||
-rw-r--r-- | tools/qdoc3/test/macros.qdocconf | 5 |
8 files changed, 70 insertions, 121 deletions
diff --git a/doc/src/external-resources.qdoc b/doc/src/external-resources.qdoc index cc5a24f..ad6731b 100644 --- a/doc/src/external-resources.qdoc +++ b/doc/src/external-resources.qdoc @@ -357,3 +357,13 @@ \externalpage http://developers.sun.com/sunstudio/downloads/patches/index.jsp \title Sun Studio Patches */ + +/*! + \externalpage http://www.qtcentre.org + \title Qt Centre +*/ + +/*! + \externalpage http://www.kde.org + \title KDE +*/ diff --git a/doc/src/getting-started/how-to-learn-qt.qdoc b/doc/src/getting-started/how-to-learn-qt.qdoc index 5a83975..9df6f1f 100644 --- a/doc/src/getting-started/how-to-learn-qt.qdoc +++ b/doc/src/getting-started/how-to-learn-qt.qdoc @@ -43,22 +43,14 @@ \page how-to-learn-qt.html \title How to Learn Qt \brief Links to guides and resources for learning Qt. - \nextpage Tutorials + \section1 Getting Started + We assume that you already know C++ and will be using it for Qt development. See the \l{Qt website} for more information about using other programming languages with Qt. - The best way to learn Qt is to read the official Qt book, - \l{http://www.amazon.com/gp/product/0132354160/ref=ase_trolltech/}{C++ - GUI Programming with Qt 4, Second Edition} (ISBN 0-13-235416-0). This book - provides comprehensive coverage of Qt programming all the way - from "Hello Qt" to advanced features such as multithreading, 2D and - 3D graphics, networking, item view classes, and XML. (The first edition, - which is based on Qt 4.1, is available - \l{http://www.qtrac.eu/C++-GUI-Programming-with-Qt-4-1st-ed.zip}{online}.) - If you want to program purely in C++, designing your interfaces in code without the aid of any design tools, take a look at the \l{Tutorials}. These are designed to get you into Qt programming, @@ -73,6 +65,12 @@ overviews to deepen your understanding of Qt: \l{Qt Object Model} and \l{Signals and Slots}. + \beginfloatleft + \inlineimage qtdemo-small.png + \endfloat + + \section1 Getting an Overview + At this point, we recommend looking at the \l{All Overviews and HOWTOs}{overviews} and reading those that are relevant to your projects. You may also find it useful to browse the @@ -80,18 +78,14 @@ common with your projects. You can also read Qt's source code since this is supplied. - \table 50% - \header - \o {2,1} Getting an Overview - \row - \o \inlineimage qtdemo-small.png - \o If you run the \l{Examples and Demos Launcher}, you'll see many of Qt's widgets in action. The \l{Qt Widget Gallery} also provides overviews of selected Qt widgets in each of the styles used on various supported platforms. - \endtable + \clearfloat + + \section1 Books and Learning Materials Qt comes with extensive documentation, with hypertext cross-references throughout, so you can easily click your way to @@ -103,16 +97,32 @@ this tool is supplied with Qt and provides access to the entire Qt API, and it provides a full text search facility. - There are also a growing number of books about Qt programming; see - \l{Books about Qt Programming} for a complete list of Qt books, + There are also a growing number of books about Qt programming. + We recommend the official Qt book, + \l{http://www.amazon.com/gp/product/0132354160/ref=ase_trolltech/}{C++ + GUI Programming with Qt 4, Second Edition} (ISBN 0-13-235416-0). This book + provides comprehensive coverage of Qt programming all the way + from "Hello Qt" to advanced features such as multithreading, 2D and + 3D graphics, networking, item view classes, and XML. (The first edition, + which is based on Qt 4.1, is available + \l{http://www.qtrac.eu/C++-GUI-Programming-with-Qt-4-1st-ed.zip}{online}.) + + See \l{Books about Qt Programming} for a complete list of Qt books, including translations to various languages. Another valuable source of example code and explanations of Qt - features is the archive of articles from \l {http://qt.nokia.com/doc/qq} - {Qt Quarterly}, a quarterly newsletter for users of Qt. + features is the archive of articles from \l{Qt Quarterly}, a quarterly newsletter for users of Qt. For documentation on specific Qt modules and other guides, refer to \l{All Overviews and HOWTOs}. + \section1 Further Reading + + Qt has an active and helpful user community who communicate using + the \l{Qt Mailing Lists}{qt-interest} mailing list, the \l{Qt Centre} + Web site, and a number of other community Web sites and Weblogs. + In addition, many Qt developers are active members of the + \l{KDE}{KDE community}. + Good luck, and have fun! */ diff --git a/doc/src/qt-webpages.qdoc b/doc/src/qt-webpages.qdoc index 68658ae..e02cd19 100644 --- a/doc/src/qt-webpages.qdoc +++ b/doc/src/qt-webpages.qdoc @@ -180,7 +180,7 @@ */ /*! - \externalpage http://qt.nokia.com/lists + \externalpage http://lists.trolltech.com \title Qt Mailing Lists */ diff --git a/doc/src/snippets/code/doc_src_qtxmlpatterns.qdoc b/doc/src/snippets/code/doc_src_qtxmlpatterns.qdoc index 7f4c89b..2d5babb 100644 --- a/doc/src/snippets/code/doc_src_qtxmlpatterns.qdoc +++ b/doc/src/snippets/code/doc_src_qtxmlpatterns.qdoc @@ -248,8 +248,8 @@ declare variable $insertion := "example"; declare default element namespace "http://cookbook/namespace"; let $docURI := 'cookbook.xml' return if(doc-available($docURI)) - then doc($docURI)//recipe/<resept>{./node()}</resept> - else <resept>Failed to load {$docURI}</resept> + then doc($docURI)//recipe/<oppskrift>{./node()}</oppskrift> + else <oppskrift>Failed to load {$docURI}</oppskrift> //! [40] //! [41] @@ -312,79 +312,5 @@ for $a in doc('doc.txt')//p <p>f0</p> //! [49] -//! [100] -<?xml version="1.0" encoding="UTF-8"?> -<cookbook> - <recipe xml:id="MushroomSoup"> - <title>Quick and Easy Mushroom Soup</title> - <ingredient name="Fresh mushrooms" - quantity="7" - unit="pieces"/> - <ingredient name="Garlic" - quantity="1" - unit="cloves"/> - <ingredient name="Olive oil" - quantity="2" - unit="tablespoons"/> - <ingredient name="Milk" - quantity="200" - unit="milliliters"/> - <ingredient name="Water" - quantity="200" - unit="milliliters"/> - <ingredient name="Cream" - quantity="100" - unit="milliliters"/> - <ingredient name="Vegetable soup cube" - quantity="1/2" - unit="cubes"/> - <ingredient name="Ground black pepper" - quantity="1/2" - unit="teaspoons"/> - <ingredient name="Dried parsley" - quantity="1" - unit="teaspoons"/> - <time quantity="20" - unit="minutes"/> - <method> - <step>1. Slice mushrooms and garlic.</step> - <step>2. Fry mushroom slices and garlic with olive oil.</step> - <step>3. Once mushrooms are cooked, add milk, cream water. Stir.</step> - <step>4. Add vegetable soup cube.</step> - <step>5. Reduce heat, add pepper and parsley.</step> - <step>6. Turn off the stove before the mixture boils.</step> - <step>7. Blend the mixture.</step> - </method> - </recipe> - <recipe xml:id="CheeseOnToast"> - <title>Cheese on Toast</title> - <ingredient name="Bread" - quantity="2" - unit="slices"/> - <ingredient name="Cheese" - quantity="2" - unit="slices"/> - <time quantity="3" - unit="minutes"/> - <method> - <step>1. Slice the bread and cheese.</step> - <step>2. Grill one side of each slice of bread.</step> - <step>3. Turn over the bread and place a slice of cheese on each piece.</step> - <step>4. Grill until the cheese has started to melt.</step> - <step>5. Serve and enjoy!</step> - </method> - </recipe> - <recipe xml:id="HardBoiledEggs"> - <title>Hard-Boiled Eggs</title> - <ingredient name="Eggs" - quantity="3" - unit="eggs"/> - <time quantity="3" - unit="minutes"/> - <method/> - </recipe> -</cookbook> -//! [100] - } diff --git a/doc/src/snippets/widgets-tutorial/template.cpp b/doc/src/snippets/widgets-tutorial/template.cpp index 19902cc..2ced971 100644 --- a/doc/src/snippets/widgets-tutorial/template.cpp +++ b/doc/src/snippets/widgets-tutorial/template.cpp @@ -39,6 +39,7 @@ ** ****************************************************************************/ +//! [main.cpp body] #include <QtGui> // Include header files for application components. @@ -53,3 +54,4 @@ int main(int argc, char *argv[]) return app.exec(); } +//! [main.cpp body] diff --git a/doc/src/tutorials/widgets-tutorial.qdoc b/doc/src/tutorials/widgets-tutorial.qdoc index 31e2ba3..1d3ebfe 100644 --- a/doc/src/tutorials/widgets-tutorial.qdoc +++ b/doc/src/tutorials/widgets-tutorial.qdoc @@ -80,7 +80,7 @@ A typical \c main() function, written in \c{main.cpp}, looks like this: - \quotefile doc/src/snippets/widgets-tutorial/template.cpp + \snippet doc/src/snippets/widgets-tutorial/template.cpp main.cpp body We first construct a QApplication object which is configured using any arguments passed in from the command line. After any widgets have been diff --git a/doc/src/xml-processing/xquery-introduction.qdoc b/doc/src/xml-processing/xquery-introduction.qdoc index 93a33c1..25fa13f 100644 --- a/doc/src/xml-processing/xquery-introduction.qdoc +++ b/doc/src/xml-processing/xquery-introduction.qdoc @@ -40,11 +40,11 @@ ****************************************************************************/ /*! - \page xquery-introduction.html - \title A Short Path to XQuery +\page xquery-introduction.html +\title A Short Path to XQuery - \startpage Using XML Technologies - \target XQuery-introduction +\startpage Using XML Technologies +\target XQuery-introduction XQuery is a language for querying XML data or non-XML data that can be modeled as XML. XQuery is specified by the \l{http://www.w3.org}{W3C}. @@ -119,7 +119,7 @@ following XQuery: \snippet snippets/code/doc_src_qtxmlpatterns.qdoc 18 -The \c{doc()} function loads the file \l{cookbook.xml} and returns the +The \c{doc()} function loads the \c{cookbook.xml} file and returns the document node. The document node then becomes the focus for the next step \c{//recipe}. Here the double slash means select all \c{<recipe>} elements found below the document node, regardless of where they @@ -535,7 +535,7 @@ methods is presented in the section on \l{Boolean Predicates}. There are many more functions and operators defined for XQuery and XPath. They are all \l{http://www.w3.org/TR/xpath-functions} -{documented here}. +{documented in the specification}. \section2 Positional Predicates @@ -688,12 +688,12 @@ XQueries wherever expressions are allowed. \snippet snippets/code/doc_src_qtxmlpatterns.qdoc 40 -If \c{cookbook.xml} is loaded without error, a \c{<resept>} element -(Norweigian word for recipe) is constructed for each \c{<recipe>} +If \c{cookbook.xml} is loaded without error, a \c{<oppskrift>} element +(Norwegian word for recipe) is constructed for each \c{<recipe>} element in the cookbook, and the child nodes of the \c{<recipe>} are -copied into the \c{<resept>} element. But if the cookbook document +copied into the \c{<oppskrift>} element. But if the cookbook document doesn't exist or does not contain well-formed XML, a single -\c{<resept>} element is constructed containing an error message. +\c{<oppskrift>} element is constructed containing an error message. \section1 Constructing Atomic Values @@ -727,26 +727,23 @@ Sending this XQuery through xmlpatterns produces: \snippet snippets/code/doc_src_qtxmlpatterns.qdoc 40 -If \c{cookbook.xml} is loaded without error, a \c{<resept>} element +If \c{cookbook.xml} is loaded without error, a \c{<oppskrift>} element (Norweigian word for recipe) is constructed for each \c{<recipe>} element in the cookbook, and the child nodes of the \c{<recipe>} are -copied into the \c{<resept>} element. But if the cookbook document +copied into the \c{<oppskrift>} element. But if the cookbook document doesn't exist or does not contain well-formed XML, a single -\c{<resept>} element is constructed containing an error message. +\c{<oppskrift>} element is constructed containing an error message. \section1 Running The Cookbook Examples -Most of the XQuery examples in this document refer to the cookbook -written in XML shown below. Save it as \c{cookbook.xml}. In the same -directory, save one of the cookbook XQuery examples in a \c{.xq} file -(e.g. \c{file.xq}). Run the XQuery using Qt's command line utility: +Most of the XQuery examples in this document refer to the +\c{cookbook.xml} example file from the \l{Recipes Example}. +Copy the \c{cookbook.xml} to your current directory, save one of the +cookbook XQuery examples in a \c{.xq} file (e.g., \c{file.xq}), and +run the XQuery using Qt's command line utility: \snippet snippets/code/doc_src_qtxmlpatterns.qdoc 6 -\section2 cookbook.xml - -\snippet snippets/code/doc_src_qtxmlpatterns.qdoc 100 - \section1 Further Reading There is much more to the XQuery language than we have presented in @@ -1019,5 +1016,4 @@ you want to use \c{true} and \c{false}. The other way is to invoke the boolean constructor: \quotefile snippets/patternist/xsBooleanTrue.xq - */ diff --git a/tools/qdoc3/test/macros.qdocconf b/tools/qdoc3/test/macros.qdocconf index f7dcdc0..dbb8ab8 100644 --- a/tools/qdoc3/test/macros.qdocconf +++ b/tools/qdoc3/test/macros.qdocconf @@ -28,3 +28,8 @@ macro.begincomment = "\\c{/*}" macro.endcomment = "\\c{*/}" macro.uuml.HTML = "ü" macro.mdash.HTML = "—" + +macro.beginfloatleft.HTML = "<div style=\"float: left; margin-right: 2em\">" +macro.beginfloatright.HTML = "<div style=\"float: right; margin-left: 2em\">" +macro.endfloat.HTML = "</div>" +macro.clearfloat.HTML = "<div style=\"clear: both\">" |