summaryrefslogtreecommitdiffstats
path: root/examples/widgets/doc
diff options
context:
space:
mode:
authorNico Vertriest <nico.vertriest@qt.io>2017-11-30 14:13:46 +0100
committerFrederik Gladhorn <frederik.gladhorn@qt.io>2018-02-19 12:28:46 +0000
commit195b2321d22bbf94ed4f40441687a97dbd975916 (patch)
tree553c5eba68280d4ba9ebf342e5859249ee2330d4 /examples/widgets/doc
parentfa0906bc5664913f232721d611e6e7906892d766 (diff)
Doc: complete Border Layout Example
Task-number: QTBUG-60635 Change-Id: Icc605e5bad96aaad0233d4b05ab1ed46972bd725 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
Diffstat (limited to 'examples/widgets/doc')
-rw-r--r--examples/widgets/doc/src/borderlayout.qdoc28
1 files changed, 28 insertions, 0 deletions
diff --git a/examples/widgets/doc/src/borderlayout.qdoc b/examples/widgets/doc/src/borderlayout.qdoc
index c8f2ae4196..6572bfe578 100644
--- a/examples/widgets/doc/src/borderlayout.qdoc
+++ b/examples/widgets/doc/src/borderlayout.qdoc
@@ -36,6 +36,34 @@
\image borderlayout-example.png
+ The constructor of the Window class creates a QTextBrowser object,
+ to which a BorderLayout named \c layout is added. The declaration
+ of the BorderLayout class is quoted at the end of this document.
+
+ \quotefromfile layouts/borderlayout/window.cpp
+ \skipto Window::Window()
+ \printuntil BorderLayout
+
+ Several labeled widgets are added to \c layout with the orientation
+ \c {Center}, \c {North}, \c {West}, \c {East 1}, \c {East 2}, and
+ \c {South}.
+
+ \skipto layout->addWidget
+ \printuntil setWindowTitle
+
+ createLabel() in class \c Window sets the text of the labeled widgets
+ and the style.
+
+ \skipto QLabel *Window::createLabel
+ \printuntil /^\}/
+
+ Class BorderLayout contains all the utilitarian functions for formatting
+ the widgets it contains.
+
+ \quotefromfile layouts/borderlayout/borderlayout.h
+ \skipto class
+ \printuntil /^\}/
+
For more information, visit the \l{Layout Management} page.
\include examples-run.qdocinc