diff options
author | Casper van Donderen <casper.vandonderen@nokia.com> | 2012-05-07 15:50:31 +0200 |
---|---|---|
committer | Marius Storm-Olsen <marius.storm-olsen@nokia.com> | 2012-05-09 08:36:34 +0200 |
commit | cfdc5628b1fc2cbafa2aebca38995e5718fcb0de (patch) | |
tree | 67615dc74faa944bf7745c9db001efa3594a3249 /src/gui/util | |
parent | 3b8e6027c2f79bde70f9415f0757df073ef75702 (diff) |
Doc: Modularize QtGui documentation.
This change moves the snippets and images to the modularized
directories.
Change-Id: I5f86f598fbe7c47d632c613b85d94ced89ba2c29
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
Diffstat (limited to 'src/gui/util')
-rw-r--r-- | src/gui/util/qdesktopservices.cpp | 6 | ||||
-rw-r--r-- | src/gui/util/qvalidator.cpp | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/gui/util/qdesktopservices.cpp b/src/gui/util/qdesktopservices.cpp index a941c06031..1535162735 100644 --- a/src/gui/util/qdesktopservices.cpp +++ b/src/gui/util/qdesktopservices.cpp @@ -135,7 +135,7 @@ void QOpenUrlHandlerRegistry::handlerDestroyed(QObject *handler) URLs, and by registering a handler it becomes possible to display the help text inside the application: - \snippet doc/src/snippets/code/src_gui_util_qdesktopservices.cpp 0 + \snippet code/src_gui_util_qdesktopservices.cpp 0 If inside the handler you decide that you can't open the requested URL, you can just call QDesktopServices::openUrl() again with the @@ -155,7 +155,7 @@ void QOpenUrlHandlerRegistry::handlerDestroyed(QObject *handler) The following example opens a file on the Windows file system residing on a path that contains spaces: - \snippet doc/src/snippets/code/src_gui_util_qdesktopservices.cpp 2 + \snippet code/src_gui_util_qdesktopservices.cpp 2 If a \c mailto URL is specified, the user's e-mail client will be used to open a composer window containing the options specified in the URL, similar to the way @@ -164,7 +164,7 @@ void QOpenUrlHandlerRegistry::handlerDestroyed(QObject *handler) For example, the following URL contains a recipient (\c{user@foo.com}), a subject (\c{Test}), and a message body (\c{Just a test}): - \snippet doc/src/snippets/code/src_gui_util_qdesktopservices.cpp 1 + \snippet code/src_gui_util_qdesktopservices.cpp 1 \warning Although many e-mail clients can send attachments and are Unicode-aware, the user may have configured their client without these features. diff --git a/src/gui/util/qvalidator.cpp b/src/gui/util/qvalidator.cpp index 3103cc7424..84a5b4c54c 100644 --- a/src/gui/util/qvalidator.cpp +++ b/src/gui/util/qvalidator.cpp @@ -303,12 +303,12 @@ void QValidator::fixup(QString &) const Example of use: - \snippet doc/src/snippets/code/src_gui_widgets_qvalidator.cpp 0 + \snippet code/src_gui_util_qvalidator.cpp 0 Below we present some examples of validators. In practice they would normally be associated with a widget as in the example above. - \snippet doc/src/snippets/code/src_gui_widgets_qvalidator.cpp 1 + \snippet code/src_gui_util_qvalidator.cpp 1 Notice that the value \c 999 returns Intermediate. Values consisting of a number of digits equal to or less than the max @@ -377,7 +377,7 @@ QIntValidator::~QIntValidator() the user might be just about to type the minus (especially for right-to-left languages). - \snippet doc/src/snippets/code/src_gui_widgets_qvalidator.cpp 2 + \snippet code/src_gui_util_qvalidator.cpp 2 By default, the \a pos parameter is not used by this validator. */ @@ -812,12 +812,12 @@ QDoubleValidator::Notation QDoubleValidator::notation() const For a brief introduction to Qt's regexp engine, see \l QRegExp. Example of use: - \snippet doc/src/snippets/code/src_gui_widgets_qvalidator.cpp 3 + \snippet code/src_gui_util_qvalidator.cpp 3 Below we present some examples of validators. In practice they would normally be associated with a widget as in the example above. - \snippet doc/src/snippets/code/src_gui_widgets_qvalidator.cpp 4 + \snippet code/src_gui_util_qvalidator.cpp 4 \sa QRegExp, QIntValidator, QDoubleValidator, {Settings Editor Example} */ |