diff options
author | Casper van Donderen <casper.vandonderen@nokia.com> | 2012-05-08 11:33:17 +0200 |
---|---|---|
committer | Marius Storm-Olsen <marius.storm-olsen@nokia.com> | 2012-05-09 08:37:21 +0200 |
commit | 6d4f2486d55d706863508fdcae9a5368692de494 (patch) | |
tree | 7f2852f16efb805d41f5502f8aed9346ba050e71 /src/testlib/qsignalspy.qdoc | |
parent | 1794c3b7a1f2b27aaadfc20cea587284e336080e (diff) |
Doc: Modularize QtTest documentation.
This change moves the snippets to the modularized directories.
Change-Id: I917dd1dae5ee5d4b6bd5a0390783a8b9a99edc06
Reviewed-by: Marius Storm-Olsen <marius.storm-olsen@nokia.com>
Diffstat (limited to 'src/testlib/qsignalspy.qdoc')
-rw-r--r-- | src/testlib/qsignalspy.qdoc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/testlib/qsignalspy.qdoc b/src/testlib/qsignalspy.qdoc index dddaed74f6..7ce0a51505 100644 --- a/src/testlib/qsignalspy.qdoc +++ b/src/testlib/qsignalspy.qdoc @@ -38,7 +38,7 @@ The following example records all signal emissions for the \c clicked() signal of a QCheckBox: - \snippet doc/src/snippets/code/doc_src_qsignalspy.cpp 0 + \snippet code/doc_src_qsignalspy.cpp 0 \c{spy.takeFirst()} returns the arguments for the first emitted signal, as a list of QVariant objects. The \c clicked() signal has a single bool argument, @@ -46,17 +46,17 @@ The example below catches a signal from a custom object: - \snippet doc/src/snippets/code/doc_src_qsignalspy.cpp 1 + \snippet code/doc_src_qsignalspy.cpp 1 \b {Note:} Non-standard data types need to be registered, using the qRegisterMetaType() function, before you can create a QSignalSpy. For example: - \snippet doc/src/snippets/code/doc_src_qsignalspy.cpp 2 + \snippet code/doc_src_qsignalspy.cpp 2 To retrieve the \c QModelIndex, you can use qvariant_cast: - \snippet doc/src/snippets/code/doc_src_qsignalspy.cpp 3 + \snippet code/doc_src_qsignalspy.cpp 3 */ /*! \fn QSignalSpy::QSignalSpy(QObject *object, const char *signal) @@ -69,7 +69,7 @@ return false. Example: - \snippet doc/src/snippets/code/doc_src_qsignalspy.cpp 4 + \snippet code/doc_src_qsignalspy.cpp 4 */ /*! \fn QSignalSpy::isValid() const |