on xenial help sign in
Have a table here too
commit913477afc19c0696fc364406c0c0268f2c96514c authorAlbert Astals <albert.astals@canonical.com> dateThu 31 Jul 2014, 11:58 (12 years ago) parent9ce6b99
1 file changed+5−1
tests/qmltests/Dash/Previews/tst_PreviewExpandable.qml+5−1
tests/qmltests/Dash/Previews/tst_PreviewExpandable.qml+5−1
@@ -30,12 +30,16 @@ Rectangle {
3030 property string longText2: "This is a very very very long text. 1 This is a very very very long text. 2 This is a very very very long text. 3 This is a very very very long text. 4 This is a very very very long text. 5 This is a very very very long text. 6 This is a very very very long text. 7 This is a very very very long text. 8 This is a very very very long text. 9 This is a very very very long text. 10 This is a very very very long text. 11 This is a very very very long text."
3131 property string shortText: "This is a short text :)"
3232
33+ property var tableData: {
34+ "values": [ [ "Long Label 1", "Value 1"], [ "Label 2", "Long Value 2"], [ "Label 3", "Value 3"], [ "Label 4", "Value 4"], [ "Label 5", "Value 5"] ]
35+ }
36+
3337 property var widgetData: {
3438 "title": "Title here",
3539 "collapsed-widgets": 2,
3640 "widgets": [
3741 { "type": "text", "widgetId" : "text1", "properties" : { "text": longText } },
38− { "type": "text", "widgetId" : "text2", "properties" : { "text": longText2 } },
42+ { "type": "table", "widgetId" : "table1", "properties" : tableData },
3943 { "type": "text", "widgetId" : "text3", "properties" : { "text": shortText } },
4044 { "type": "text", "widgetId" : "text4", "properties" : { "text": longText } }
4145 ]