diff options
author | Venu <venugopal.shivashankar@digia.com> | 2014-03-06 16:53:40 +0100 |
---|---|---|
committer | Venugopal Shivashankar <venugopal.shivashankar@digia.com> | 2014-06-27 12:30:40 +0200 |
commit | 58c5f54f0b772a424c60a8e5184eaf698e744c9a (patch) | |
tree | 78dd541ef330ca522b34684f8530037f68a71bea /src/controls/ToolBar.qml | |
parent | c76b9478be9c6aab13bcd8e237db12dec080841e (diff) | |
download | qtquickcontrols-58c5f54f0b772a424c60a8e5184eaf698e744c9a.tar.gz |
Doc: Added images and missing snippets
Task-number: QTBUG-33799
Change-Id: I582518a73276d47cf63cf31411b5176a90acab6f
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'src/controls/ToolBar.qml')
-rw-r--r-- | src/controls/ToolBar.qml | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/src/controls/ToolBar.qml b/src/controls/ToolBar.qml index 90f9d4a3..8fe4c97d 100644 --- a/src/controls/ToolBar.qml +++ b/src/controls/ToolBar.qml @@ -49,6 +49,8 @@ import QtQuick.Controls.Private 1.0 \ingroup applicationwindow \brief Contains ToolButton and related controls. + \image toolbar.png + The common way of using ToolBar is in relation to \l ApplicationWindow. It provides styling and is generally designed to work well with ToolButton as well as other controls. @@ -61,15 +63,26 @@ import QtQuick.Controls.Private 1.0 Otherwise the height is platform dependent. \code - import QtQuick.Controls 1.2 - import QtQuick.Layouts 1.0 - ApplicationWindow { - toolBar: ToolBar { + ... + toolBar:ToolBar { RowLayout { - ToolButton { ... } - ToolButton { ... } - ToolButton { ... } + anchors.fill: parent + ToolButton { + iconSource: "new.png" + } + ToolButton { + iconSource: "open.png" + } + ToolButton { + iconSource: "save-as.png" + } + Item { Layout.fillWidth: true } + CheckBox { + text: "Enabled" + checked: true + Layout.alignment: Qt.AlignRight + } } } } |