From f9ed8d963b2e672219f77631efa0cbda78f26ca7 Mon Sep 17 00:00:00 2001 From: Casper van Donderen Date: Wed, 29 Jun 2011 10:28:19 +0200 Subject: Move the books example in the docs. Change-Id: I90624853c29752b2e7cee2e58b40f92f30e02dbe Reviewed-on: http://codereview.qt.nokia.com/877 Reviewed-by: Qt Sanity Bot Reviewed-by: Kevin Wright --- doc/src/demos/books.qdoc | 46 ---------------------------- doc/src/examples/books.qdoc | 46 ++++++++++++++++++++++++++++ doc/src/sql-programming/sql-programming.qdoc | 2 +- 3 files changed, 47 insertions(+), 47 deletions(-) delete mode 100644 doc/src/demos/books.qdoc create mode 100644 doc/src/examples/books.qdoc (limited to 'doc') diff --git a/doc/src/demos/books.qdoc b/doc/src/demos/books.qdoc deleted file mode 100644 index 7eccd5b8e1..0000000000 --- a/doc/src/demos/books.qdoc +++ /dev/null @@ -1,46 +0,0 @@ -/**************************************************************************** -** -** 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 demos/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. -*/ 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. +*/ diff --git a/doc/src/sql-programming/sql-programming.qdoc b/doc/src/sql-programming/sql-programming.qdoc index 68b1a2fe44..55f97484bb 100644 --- a/doc/src/sql-programming/sql-programming.qdoc +++ b/doc/src/sql-programming/sql-programming.qdoc @@ -603,7 +603,7 @@ \image qdatawidgetmapper-simple.png - The \l{demos/books}{Books} demonstration shows how information can + The \l{sql/books}{Books} example shows how information can be presented for easy access by using QDataWidgetMapper and a set of simple input widgets. */ -- cgit v1.2.3