aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@qt.io>2017-12-22 13:51:21 +0100
committerMitch Curtis <mitch.curtis@qt.io>2017-12-22 13:00:15 +0000
commit6f7607071e236eca91ab04c395dd061dcadeaef7 (patch)
treeedec373655389d2102221eec58484fa5c51726ad
parent951cf6baf0d34a104b01b42de1454696c51f7177 (diff)
Doc: update code snippet to add some content to the Drawer
Task-number: QTBUG-60550 Change-Id: I14c4d0343e2b02180bbce0546a69a7241ee6008e Reviewed-by: J-P Nurmi <jpnurmi@qt.io>
-rw-r--r--src/quicktemplates2/qquickdrawer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/quicktemplates2/qquickdrawer.cpp b/src/quicktemplates2/qquickdrawer.cpp
index f5df8015..dd96b3a8 100644
--- a/src/quicktemplates2/qquickdrawer.cpp
+++ b/src/quicktemplates2/qquickdrawer.cpp
@@ -79,6 +79,11 @@ QT_BEGIN_NAMESPACE
id: drawer
width: 0.66 * window.width
height: window.height
+
+ Label {
+ text: "Content goes here!"
+ anchors.centerIn: parent
+ }
}
}
\endcode