Commit ed7d168c authored by Caroline Chao's avatar Caroline Chao Committed by The Qt Project
Browse files

Testbench: Add properties


- checkedState
- partiallyCheckedEnabled
- alternatingRowColors

And update status bar.

Change-Id: I837aac4788e04901418264374c84ae92c2234b2f
Reviewed-by: default avatarJens Bache-Wiig <jens.bache-wiig@digia.com>
parent b15db440
Branches
Tags
No related merge requests found
Showing with 16 additions and 4 deletions
......@@ -108,10 +108,11 @@ ApplicationWindow {
anchors.left: parent.left
anchors.leftMargin: 8
anchors.verticalCenter: parent.verticalCenter
Label { text: "X: " + topLeftHandle.x ; width: 50}
Label { text: "Y: " + topLeftHandle.y ; width: 50}
Label { text: "Width: " + container.width ; width: 70}
Label { text: "Height: "+container.height ; width: 70}
spacing: 5
Label { text: "X: " + topLeftHandle.x; width: 70 }
Label { text: "Y: " + topLeftHandle.y; width: 70 }
Label { text: "Width: " + container.width; width: 80 }
Label { text: "Height: "+container.height; width: 80 }
}
}
......@@ -214,6 +215,8 @@ ApplicationWindow {
case "TickmarksEnabled":
case "SortIndicatorVisible":
case "IsDefault":
case "PartiallyCheckedEnabled":
case "AlternatingRowColors":
layout = layouts.boolLayout
typeName = "Boolean";
break
......@@ -334,6 +337,15 @@ ApplicationWindow {
enumModelData.append({ text: "Qt.DescendingOrder", value: Qt.DescendingOrder});
break;
case "CheckedState":
layout = layouts.enumLayout
enumModelData = Qt.createQmlObject('import QtQuick 2.1; import QtQuick.Controls 1.0; ListModel {}', layout, '');
typeName = "Enum";
enumModelData.append({ text: "Qt.Checked", value: Qt.Checked});
enumModelData.append({ text: "Qt.Unchecked", value: Qt.Unchecked});
enumModelData.append({ text: "Qt.PartiallyChecked", value: Qt.PartiallyChecked});
break;
default:
break;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment