diff options
author | Casper van Donderen <casper.vandonderen@nokia.com> | 2011-06-29 10:28:19 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-06-29 13:44:13 +0200 |
commit | f9ed8d963b2e672219f77631efa0cbda78f26ca7 (patch) | |
tree | 3d6c8d1879772a594fea3234e4bc0424e620bd54 /doc/src/examples | |
parent | c2f931bda2b0ae3f8779d9a120a31dbd4c053509 (diff) |
Move the books example in the docs.
Change-Id: I90624853c29752b2e7cee2e58b40f92f30e02dbe
Reviewed-on: http://codereview.qt.nokia.com/877
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Kevin Wright <kevin.wright@nokia.com>
Diffstat (limited to 'doc/src/examples')
-rw-r--r-- | doc/src/examples/books.qdoc | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/doc/src/examples/books.qdoc b/doc/src/examples/books.qdoc new file mode 100644 index 0000000000..64a4613b13 --- /dev/null +++ b/doc/src/examples/books.qdoc @@ -0,0 +1,46 @@ +/**************************************************************************** +** +** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). +** All rights reserved. +** Contact: Nokia Corporation (qt-info@nokia.com) +** +** This file is part of the documentation of the Qt Toolkit. +** +** $QT_BEGIN_LICENSE:FDL$ +** GNU Free Documentation License +** Alternatively, this file may be used under the terms of the GNU Free +** Documentation License version 1.3 as published by the Free Software +** Foundation and appearing in the file included in the packaging of +** this file. +** +** Other Usage +** Alternatively, this file may be used in accordance with the terms +** and conditions contained in a signed written agreement between you +** and Nokia. +** +** +** +** +** $QT_END_LICENSE$ +** +****************************************************************************/ + +/*! + \example sql/books + \title Books Demonstration + + The Books demonstration shows how Qt's SQL classes can be used with the model/view + framework to create rich user interfaces for information stored in a database. + + \image books-demo.png + + Information about a collection of books is held in a database. The books are + catalogued by author, title, genre, and year of publication. Although each of + these fields can be displayed and edited using standard widgets, an additional + field describing an arbitrary rating for the book needs something extra. + + Books are rated using a system where each is allocated a number of stars; the + more a book has, the better it is supposed to be. By clicking on a cell + containing the rating, the number of stars can be modified, and the rating in + the database is updated. +*/ |