diff options
author | Andy Nichols <andy.nichols@nokia.com> | 2012-08-21 16:13:49 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-08-23 11:20:37 +0200 |
commit | fc924ae47e73a5b41e274a723d8f7cdefe921c4f (patch) | |
tree | 560b0969b970c262c5ebbc9eaa4d23157f103e19 /examples/widgets/doc/spinboxes.qdoc | |
parent | 8e0bac89d4b0f01b71c57f79a3b98a6ecb7f20ae (diff) |
Doc: Fix snippet and example referencing widget examples
Widget examples were moved into a widgets subfolder, but
qdoc references were not updated.
Change-Id: Id2a4573e723745b9827c664c852807d6116f8f6d
Reviewed-by: Casper van Donderen <casper.vandonderen@nokia.com>
Diffstat (limited to 'examples/widgets/doc/spinboxes.qdoc')
-rw-r--r-- | examples/widgets/doc/spinboxes.qdoc | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/examples/widgets/doc/spinboxes.qdoc b/examples/widgets/doc/spinboxes.qdoc index ed4eea6a60..38a3483a47 100644 --- a/examples/widgets/doc/spinboxes.qdoc +++ b/examples/widgets/doc/spinboxes.qdoc @@ -26,7 +26,7 @@ ****************************************************************************/ /*! - \example widgets/spinboxes + \example widgets/widgets/spinboxes \title Spin Boxes Example The Spin Boxes example shows how to use the many different types of spin boxes @@ -43,7 +43,7 @@ The \c Window class inherits QWidget and contains two slots that are used to provide interactive features: - \snippet widgets/spinboxes/window.h 0 + \snippet widgets/widgets/spinboxes/window.h 0 The private functions are used to set up each type of spin box in the window. We use member variables to keep track of various widgets so that they can @@ -54,7 +54,7 @@ The constructor simply calls private functions to set up the different types of spin box used in the example, and places each group in a layout: - \snippet widgets/spinboxes/window.cpp 0 + \snippet widgets/widgets/spinboxes/window.cpp 0 We use the layout to manage the arrangement of the window's child widgets, and change the window title. @@ -63,7 +63,7 @@ QSpinBox widgets inside it with descriptive labels to indicate the types of input they expect. - \snippet widgets/spinboxes/window.cpp 1 + \snippet widgets/widgets/spinboxes/window.cpp 1 The first spin box shows the simplest way to use QSpinBox. It accepts values from -20 to 20, the current value can be increased or decreased by 1 with @@ -73,7 +73,7 @@ The second spin box uses a larger step size and displays a suffix to provide more information about the type of data the number represents: - \snippet widgets/spinboxes/window.cpp 2 + \snippet widgets/widgets/spinboxes/window.cpp 2 This spin box also displays a \l{QAbstractSpinBox::specialValueText}{special value} instead of the minimum @@ -82,12 +82,12 @@ The third spin box shows how a prefix can be used: - \snippet widgets/spinboxes/window.cpp 4 + \snippet widgets/widgets/spinboxes/window.cpp 4 For simplicity, we show a spin box with a prefix and no suffix. It is also possible to use both at the same time. - \snippet widgets/spinboxes/window.cpp 5 + \snippet widgets/widgets/spinboxes/window.cpp 5 The rest of the function sets up a layout for the group box and places each of the widgets inside it. @@ -95,7 +95,7 @@ The \c createDateTimeEdits() function constructs another group box with a selection of spin boxes used for editing dates and times. - \snippet widgets/spinboxes/window.cpp 6 + \snippet widgets/widgets/spinboxes/window.cpp 6 The first spin box is a QDateEdit widget that is able to accept dates within a given range specified using QDate values. The arrow buttons and @@ -104,7 +104,7 @@ The second spin box is a QTimeEdit widget: - \snippet widgets/spinboxes/window.cpp 7 + \snippet widgets/widgets/spinboxes/window.cpp 7 Acceptable values for the time are defined using QTime values. @@ -113,19 +113,19 @@ times for a meeting. These widgets will be updated when the user changes a format string. - \snippet widgets/spinboxes/window.cpp 8 + \snippet widgets/widgets/spinboxes/window.cpp 8 The format string used for the date time editor, which is also shown in the string displayed by the label, is chosen from a set of strings in a combobox: - \snippet widgets/spinboxes/window.cpp 9 + \snippet widgets/widgets/spinboxes/window.cpp 9 \codeline - \snippet widgets/spinboxes/window.cpp 10 + \snippet widgets/widgets/spinboxes/window.cpp 10 A signal from this combobox is connected to a slot in the \c Window class (shown later). - \snippet widgets/spinboxes/window.cpp 11 + \snippet widgets/widgets/spinboxes/window.cpp 11 Each child widget of the group box in placed in a layout. @@ -133,13 +133,13 @@ format string in the combobox. The display format for the QDateTimeEdit widget is set using the raw string passed by the signal: - \snippet widgets/spinboxes/window.cpp 12 + \snippet widgets/widgets/spinboxes/window.cpp 12 Depending on the visible sections in the widget, we set a new date or time range, and update the associated label to provide relevant information for the user: - \snippet widgets/spinboxes/window.cpp 13 + \snippet widgets/widgets/spinboxes/window.cpp 13 When the format string is changed, there will be an appropriate label and entry widget for dates, times, or both types of input. @@ -147,7 +147,7 @@ The \c createDoubleSpinBoxes() function constructs three spin boxes that are used to input double-precision floating point numbers: - \snippet widgets/spinboxes/window.cpp 14 + \snippet widgets/widgets/spinboxes/window.cpp 14 Before the QDoubleSpinBox widgets are constructed, we create a spin box to control how many decimal places they show. By default, only two decimal places @@ -158,23 +158,23 @@ same range, step size, and default value as the first spin box in the \c createSpinBoxes() function: - \snippet widgets/spinboxes/window.cpp 15 + \snippet widgets/widgets/spinboxes/window.cpp 15 However, this spin box also allows non-integer values to be entered. The second spin box displays a suffix and shows a special value instead of the minimum value: - \snippet widgets/spinboxes/window.cpp 16 + \snippet widgets/widgets/spinboxes/window.cpp 16 The third spin box displays a prefix instead of a suffix: - \snippet widgets/spinboxes/window.cpp 17 + \snippet widgets/widgets/spinboxes/window.cpp 17 We connect the QSpinBox widget that specifies the precision to a slot in the \c Window class. - \snippet widgets/spinboxes/window.cpp 18 + \snippet widgets/widgets/spinboxes/window.cpp 18 The rest of the function places each of the widgets into a layout for the group box. @@ -182,7 +182,7 @@ The \c changePrecision() slot is called when the user changes the value in the precision spin box: - \snippet widgets/spinboxes/window.cpp 19 + \snippet widgets/widgets/spinboxes/window.cpp 19 This function simply uses the integer supplied by the signal to specify the number of decimal places in each of the QDoubleSpinBox widgets. Each one |