diff options
author | Casper van Donderen <casper.vandonderen@nokia.com> | 2012-05-07 18:49:48 +0200 |
---|---|---|
committer | Marius Storm-Olsen <marius.storm-olsen@nokia.com> | 2012-05-09 08:36:46 +0200 |
commit | 97b5b8009254004608feefb903cbf44abaa099f6 (patch) | |
tree | cf3a79caa34085de1308eb86cac6ea0d9663aa9c /src/widgets/styles/qstyleoption.cpp | |
parent | cfdc5628b1fc2cbafa2aebca38995e5718fcb0de (diff) |
Doc: Modularize QtWidgets documentation.
This change moves the snippets and images to the modularized
directories.
Change-Id: Idec1afb9db7ea6add1ca4cf25ec4019d8bce0c4d
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
Diffstat (limited to 'src/widgets/styles/qstyleoption.cpp')
-rw-r--r-- | src/widgets/styles/qstyleoption.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/widgets/styles/qstyleoption.cpp b/src/widgets/styles/qstyleoption.cpp index 0b0c6e2393..1da5d786c7 100644 --- a/src/widgets/styles/qstyleoption.cpp +++ b/src/widgets/styles/qstyleoption.cpp @@ -74,7 +74,7 @@ QT_BEGIN_NAMESPACE The following code snippet shows how to use a specific QStyleOption subclass to paint a push button: - \snippet doc/src/snippets/qstyleoption/main.cpp 0 + \snippet qstyleoption/main.cpp 0 In our example, the control is a QStyle::CE_PushButton, and according to the QStyle::drawControl() documentation the @@ -85,7 +85,7 @@ QT_BEGIN_NAMESPACE For safety, you can use qstyleoption_cast() to ensure that the pointer type is correct. For example: - \snippet doc/src/snippets/qstyleoption/main.cpp 4 + \snippet qstyleoption/main.cpp 4 The qstyleoption_cast() function will return 0 if the object to which \c option points is not of the correct type. @@ -3240,7 +3240,7 @@ QStyleOptionViewItem::QStyleOptionViewItem(int version) Example: - \snippet doc/src/snippets/qstyleoption/main.cpp 4 + \snippet qstyleoption/main.cpp 4 \sa QStyleOption::type, QStyleOption::version */ @@ -3958,7 +3958,7 @@ QStyleHintReturnVariant::QStyleHintReturnVariant() : QStyleHintReturn(Version, T Example: - \snippet doc/src/snippets/code/src_gui_styles_qstyleoption.cpp 0 + \snippet code/src_gui_styles_qstyleoption.cpp 0 \sa QStyleHintReturn::type, QStyleHintReturn::version */ |