summaryrefslogtreecommitdiffstats
path: root/src/controls/SplitView.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@digia.com>2014-07-09 18:40:02 +0200
committerJ-P Nurmi <jpnurmi@digia.com>2014-07-09 18:40:02 +0200
commit223ec0f7827fde5609d7d48237a95e9b7c9563e1 (patch)
treeaf8420daede7cd8208adda1c8cb6381b062bdc83 /src/controls/SplitView.qml
parenta25023d56f16d8d3c08cc60f7059cf10a3b8a5ba (diff)
parentf2a3019e4332b756b5b27092768bf4039dca7c7a (diff)
Merge remote-tracking branch 'origin/5.3' into dev
Conflicts: src/controls/ToolBar.qml Change-Id: I5510496219a4ebe8bfced4192307219238ca9bb6
Diffstat (limited to 'src/controls/SplitView.qml')
-rw-r--r--src/controls/SplitView.qml55
1 files changed, 35 insertions, 20 deletions
diff --git a/src/controls/SplitView.qml b/src/controls/SplitView.qml
index 93f0a7e30..f4360746e 100644
--- a/src/controls/SplitView.qml
+++ b/src/controls/SplitView.qml
@@ -51,6 +51,8 @@ import QtQuick.Window 2.1
\ingroup views
\brief Lays out items with a draggable splitter between each item.
+ \image splitview.png
+
SplitView is a control that lays out items horizontally or
vertically with a draggable splitter between each item.
@@ -92,26 +94,39 @@ import QtQuick.Window 2.1
could do the following:
\qml
- SplitView {
- anchors.fill: parent
- orientation: Qt.Horizontal
-
- Rectangle {
- width: 200
- Layout.maximumWidth: 400
- color: "gray"
- }
- Rectangle {
- id: centerItem
- Layout.minimumWidth: 50
- Layout.fillWidth: true
- color: "darkgray"
- }
- Rectangle {
- width: 200
- color: "gray"
- }
- }
+ SplitView {
+ anchors.fill: parent
+ orientation: Qt.Horizontal
+
+ Rectangle {
+ width: 200
+ Layout.maximumWidth: 400
+ color: "lightblue"
+ Text {
+ text: "View 1"
+ anchors.centerIn: parent
+ }
+ }
+ Rectangle {
+ id: centerItem
+ Layout.minimumWidth: 50
+ Layout.fillWidth: true
+ color: "lightgray"
+ Text {
+ text: "View 2"
+ anchors.centerIn: parent
+ }
+ }
+ Rectangle {
+ width: 200
+ color: "lightgreen"
+ Text {
+ text: "View 3"
+ anchors.centerIn: parent
+ }
+ }
+ }
+
\endqml
*/