aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quickcontrols/customization/data/styles/simple/ScrollView.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/quickcontrols/customization/data/styles/simple/ScrollView.qml')
-rw-r--r--tests/auto/quickcontrols/customization/data/styles/simple/ScrollView.qml17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/auto/quickcontrols/customization/data/styles/simple/ScrollView.qml b/tests/auto/quickcontrols/customization/data/styles/simple/ScrollView.qml
new file mode 100644
index 0000000000..765bb87f4a
--- /dev/null
+++ b/tests/auto/quickcontrols/customization/data/styles/simple/ScrollView.qml
@@ -0,0 +1,17 @@
+// Copyright (C) 2017 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+
+import QtQuick
+import QtQuick.Templates as T
+
+T.ScrollView {
+ id: control
+ objectName: "scrollview-simple"
+
+ implicitWidth: Math.max(contentItem.implicitWidth, background.implicitWidth)
+ implicitHeight: Math.max(contentItem.implicitHeight, background.implicitHeight)
+
+ background: Rectangle {
+ objectName: "scrollview-background-simple"
+ }
+}