diff options
author | Nico Vertriest <nico.vertriest@qt.io> | 2017-11-30 14:13:46 +0100 |
---|---|---|
committer | Frederik Gladhorn <frederik.gladhorn@qt.io> | 2018-02-19 12:28:46 +0000 |
commit | 195b2321d22bbf94ed4f40441687a97dbd975916 (patch) | |
tree | 553c5eba68280d4ba9ebf342e5859249ee2330d4 | |
parent | fa0906bc5664913f232721d611e6e7906892d766 (diff) |
Doc: complete Border Layout Example
Task-number: QTBUG-60635
Change-Id: Icc605e5bad96aaad0233d4b05ab1ed46972bd725
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
-rw-r--r-- | doc/src/images/borderlayout-example.png | bin | 6163 -> 9126 bytes | |||
-rw-r--r-- | examples/widgets/doc/src/borderlayout.qdoc | 28 |
2 files changed, 28 insertions, 0 deletions
diff --git a/doc/src/images/borderlayout-example.png b/doc/src/images/borderlayout-example.png Binary files differindex e856e06572..27b939bc2e 100644 --- a/doc/src/images/borderlayout-example.png +++ b/doc/src/images/borderlayout-example.png 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 |