diff options
author | Casper van Donderen <casper.vandonderen@nokia.com> | 2011-06-30 09:42:52 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-07-05 21:19:08 +0200 |
commit | 1734cb55c5049ae7bead9ed5474f067ee6536e4f (patch) | |
tree | 5d521646319d14a4801f0eee0cea347595f2014d /doc/src/examples | |
parent | 192eae5797fdd8b68eef8697fd75717fd537d15b (diff) |
Move some other examples around in the docs.
Change-Id: Ib50600ff9fd3d807b82a152abd7d587196d5b5e3
Reviewed-on: http://codereview.qt.nokia.com/932
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: David Boddie
Diffstat (limited to 'doc/src/examples')
-rw-r--r-- | doc/src/examples/deform.qdoc | 51 | ||||
-rw-r--r-- | doc/src/examples/digiflip.qdoc | 31 | ||||
-rw-r--r-- | doc/src/examples/embeddeddialogs.qdoc | 37 | ||||
-rw-r--r-- | doc/src/examples/flickable.qdoc | 33 | ||||
-rw-r--r-- | doc/src/examples/flightinfo.qdoc | 33 | ||||
-rw-r--r-- | doc/src/examples/gradients.qdoc | 55 | ||||
-rw-r--r-- | doc/src/examples/lightmaps.qdoc | 33 | ||||
-rw-r--r-- | doc/src/examples/raycasting.qdoc | 33 | ||||
-rw-r--r-- | doc/src/examples/styledemo.qdoc | 33 |
9 files changed, 339 insertions, 0 deletions
diff --git a/doc/src/examples/deform.qdoc b/doc/src/examples/deform.qdoc new file mode 100644 index 0000000000..1a81053248 --- /dev/null +++ b/doc/src/examples/deform.qdoc @@ -0,0 +1,51 @@ +/**************************************************************************** +** +** 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 painting/deform + \title Vector Deformation + + This example shows how to use advanced vector techniques to draw text + using a \c QPainterPath. + + \image deform-demo.png + + We define a vector deformation field in the shape of a lens and apply + this to all points in a path. This means that what is rendered on + screen is not pixel manipulation, but modified vector representations of + the glyphs themselves. This is visible from the high quality of the + antialiased edges for the deformed glyphs. + + To get a fairly complex path we allow the user to type in text and + convert the text to paths. This is done using the + QPainterPath::addText() function. + + The lens is drawn using a single call to QPainter::drawEllipse(), + using a QRadialGradient to fill it with a specialized color + table, giving the effect of the sun's reflection and a drop + shadow. The lens is cached as a pixmap for better performance. +*/ diff --git a/doc/src/examples/digiflip.qdoc b/doc/src/examples/digiflip.qdoc new file mode 100644 index 0000000000..ae3b18216b --- /dev/null +++ b/doc/src/examples/digiflip.qdoc @@ -0,0 +1,31 @@ +/**************************************************************************** +** +** 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 embedded/digiflip + \title Digiflip +*/ diff --git a/doc/src/examples/embeddeddialogs.qdoc b/doc/src/examples/embeddeddialogs.qdoc new file mode 100644 index 0000000000..685bcf8e22 --- /dev/null +++ b/doc/src/examples/embeddeddialogs.qdoc @@ -0,0 +1,37 @@ +/**************************************************************************** +** +** 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 graphicsview/embeddeddialogs + \title Embedded Dialogs + + This example shows how to embed standard dialogs into + Graphics View. It also shows how you can customize the + proxy class and add window shadows. + + \image embeddeddialogs-demo.png +*/ diff --git a/doc/src/examples/flickable.qdoc b/doc/src/examples/flickable.qdoc new file mode 100644 index 0000000000..378bfcaf47 --- /dev/null +++ b/doc/src/examples/flickable.qdoc @@ -0,0 +1,33 @@ +/**************************************************************************** +** +** 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 embedded/flickable + \title Flickable List + + \image flickable-demo.png +*/ diff --git a/doc/src/examples/flightinfo.qdoc b/doc/src/examples/flightinfo.qdoc new file mode 100644 index 0000000000..f3b5e32197 --- /dev/null +++ b/doc/src/examples/flightinfo.qdoc @@ -0,0 +1,33 @@ +/**************************************************************************** +** +** 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 embedded/flightinfo + \title Flight Info + + \image flightinfo-demo.png +*/ diff --git a/doc/src/examples/gradients.qdoc b/doc/src/examples/gradients.qdoc new file mode 100644 index 0000000000..430ce3ce87 --- /dev/null +++ b/doc/src/examples/gradients.qdoc @@ -0,0 +1,55 @@ +/**************************************************************************** +** +** 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 painting/gradients + \title Gradients + + In this example we show the various types of gradients that can + be used in Qt. + + \image gradients-demo.png + + There are three types of gradients: + + \list + \o \bold{Linear} gradients interpolate colors between start and end points. + \o \bold{Radial} gradients interpolate colors between a focal point and the + points on a circle surrounding it. + \o \bold{Conical} gradients interpolate colors around a center point. + \endlist + + The panel on the right contains a color table editor that defines + the colors in the gradient. The three topmost controls determine the red, + green and blue components while the last defines the alpha of the + gradient. You can move points, and add new ones, by clicking with the left + mouse button, and remove points by clicking with the right button. + + There are three default configurations available at the bottom of + the page that are provided as suggestions on how a color table could be + configured. +*/ diff --git a/doc/src/examples/lightmaps.qdoc b/doc/src/examples/lightmaps.qdoc new file mode 100644 index 0000000000..0b5b807919 --- /dev/null +++ b/doc/src/examples/lightmaps.qdoc @@ -0,0 +1,33 @@ +/**************************************************************************** +** +** 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 embedded/lightmaps + \title Light Maps + + \image lightmaps-demo.png +*/ diff --git a/doc/src/examples/raycasting.qdoc b/doc/src/examples/raycasting.qdoc new file mode 100644 index 0000000000..ae5be0f707 --- /dev/null +++ b/doc/src/examples/raycasting.qdoc @@ -0,0 +1,33 @@ +/**************************************************************************** +** +** 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 embedded/raycasting + \title Ray Casting + + \image raycasting-demo.png +*/ diff --git a/doc/src/examples/styledemo.qdoc b/doc/src/examples/styledemo.qdoc new file mode 100644 index 0000000000..5a5bb5b47d --- /dev/null +++ b/doc/src/examples/styledemo.qdoc @@ -0,0 +1,33 @@ +/**************************************************************************** +** +** 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 embedded/styledemo + \title Embedded Styles + + \image styledemo-demo.png +*/ |