summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/src/snippets/widgets-tutorial/template.cpp2
-rw-r--r--doc/src/tutorials/widgets-tutorial.qdoc2
2 files changed, 3 insertions, 1 deletions
diff --git a/doc/src/snippets/widgets-tutorial/template.cpp b/doc/src/snippets/widgets-tutorial/template.cpp
index 19902cc..2ced971 100644
--- a/doc/src/snippets/widgets-tutorial/template.cpp
+++ b/doc/src/snippets/widgets-tutorial/template.cpp
@@ -39,6 +39,7 @@
**
****************************************************************************/
+//! [main.cpp body]
#include <QtGui>
// Include header files for application components.
@@ -53,3 +54,4 @@ int main(int argc, char *argv[])
return app.exec();
}
+//! [main.cpp body]
diff --git a/doc/src/tutorials/widgets-tutorial.qdoc b/doc/src/tutorials/widgets-tutorial.qdoc
index 31e2ba3..1d3ebfe 100644
--- a/doc/src/tutorials/widgets-tutorial.qdoc
+++ b/doc/src/tutorials/widgets-tutorial.qdoc
@@ -80,7 +80,7 @@
A typical \c main() function, written in \c{main.cpp}, looks like this:
- \quotefile doc/src/snippets/widgets-tutorial/template.cpp
+ \snippet doc/src/snippets/widgets-tutorial/template.cpp main.cpp body
We first construct a QApplication object which is configured using any
arguments passed in from the command line. After any widgets have been