Renamed shareData to share-data and contentType to content-type
commit564639e58e1d9176df2741169cf4376a12e69cd8
authorPawel Stolowski <pawel.stolowski@canonical.com>
dateWed 9 Dec 2015, 17:37 (11 years ago)
parentd76d469
qml/Dash/Previews/PreviewSharing.qml+1−1
@@ -25,7 +25,7 @@ Item {
2525
2626 property var shareData
2727 readonly property bool isUrlExternal: url && url.indexOf("file:///") != 0 && url.indexOf("/") != 0
28− readonly property string contentType: shareData ? shareData["contentType"] : ""
28+ readonly property string contentType: shareData ? shareData["content-type"] : ""
2929 readonly property var url: shareData ? shareData["uri"] : ""
3030 readonly property Item rootItem: QuickUtils.rootItem(root)
3131
qml/Dash/Previews/PreviewVideoPlayback.qml+1−1
@@ -81,7 +81,7 @@ PreviewWidget {
8181 right: parent.right
8282 bottom: parent.bottom
8383 }
84− shareData: widgetData["shareData"]
84+ shareData: widgetData["share-data"]
8585 }
8686 }
8787}
qml/Dash/Previews/PreviewZoomableImage.qml+1−1
@@ -72,7 +72,7 @@ PreviewWidget {
7272 right: parent.right
7373 bottom: parent.bottom
7474 }
75− shareData: widgetData["shareData"]
75+ shareData: widgetData["share-data"]
7676 }
7777 }
7878
tests/qmltests/Dash/Previews/tst_PreviewSharing.qml+2−2
@@ -32,12 +32,12 @@ Rectangle {
3232 "text here 2",
3333 "text here 3"
3434 ],
35− "contentType": "text"
35+ "content-type": "text"
3636 }
3737
3838 property var shareDataNoUri: {
3939 "uri": "",
40− "contentType": "text"
40+ "content-type": "text"
4141 }
4242
4343 PreviewSharing {