From 1a89fbc5a8e9fe6b2711c2e87e9909201c26d499 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Mon, 21 Jan 2019 16:42:35 +0100 Subject: Doc: fix SplitView example Don't use explicit size properties like width; use implicitWidth instead. Change-Id: If983bc5a38289bd860652f063eca93b12aace881 Reviewed-by: Richard Moe Gustavsen --- src/quicktemplates2/qquicksplitview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/quicktemplates2/qquicksplitview.cpp b/src/quicktemplates2/qquicksplitview.cpp index 502d2b3a..40cc21f5 100644 --- a/src/quicktemplates2/qquicksplitview.cpp +++ b/src/quicktemplates2/qquicksplitview.cpp @@ -165,7 +165,7 @@ QT_BEGIN_NAMESPACE orientation: Qt.Horizontal Rectangle { - width: 200 + implicitWidth: 200 SplitView.maximumWidth: 400 color: "lightblue" Label { @@ -184,7 +184,7 @@ QT_BEGIN_NAMESPACE } } Rectangle { - width: 200 + implicitWidth: 200 color: "lightgreen" Label { text: "View 3" -- cgit v1.2.3