From b2922baedd8b6a2aa1e6aa49a28e774e331c2be9 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Thu, 5 Oct 2017 16:40:36 +0200 Subject: Manual test viewinqwidget: Add a TextField Allowing for testing menu positioning in addition to combo dropdowns. Change-Id: I0b7ef259a15d8773e82218e1f8a30f15d23e6644 Reviewed-by: Mitch Curtis --- tests/manual/viewinqwidget/main.qml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/tests/manual/viewinqwidget/main.qml b/tests/manual/viewinqwidget/main.qml index 36c09b50..e50e7712 100644 --- a/tests/manual/viewinqwidget/main.qml +++ b/tests/manual/viewinqwidget/main.qml @@ -28,14 +28,24 @@ import QtQuick 2.2 import QtQuick.Controls 1.3 +import QtQuick.Layouts 1.3 Item { visible: true width: 200 height: 200 - ComboBox { - anchors.centerIn: parent - model: [ "Banana", "Apple", "Coconut" ] + ColumnLayout { + anchors.fill: parent + + TextField { + Layout.alignment: Qt.AlignCenter + text : "Text with context menu" + } + + ComboBox { + Layout.alignment: Qt.AlignCenter + model: [ "Banana", "Apple", "Coconut" ] + } } } -- cgit v1.2.1