Fix card result
commit4e4313bf470f064a70bd70dd09671d61ca99f8b2
authorYing-Chun Liu <paul.liu@canonical.com>
dateWed 15 Oct 2014, 00:28 (12 years ago)
parent2673784
tests/plugins/Dash/cardcreator/1.res+1
@@ -13,6 +13,7 @@ AbstractButton {
1313 property bool asynchronous: true;
1414 property bool showHeader: true;
1515 implicitWidth: childrenRect.width;
16+ enabled: template == null || (template["non-interactive"] !== undefined ? !template["non-interactive"] : true);
1617onArtShapeBorderSourceChanged: { if (artShapeBorderSource !== undefined && artShapeLoader.item) artShapeLoader.item.borderSource = artShapeBorderSource; }
1718readonly property size artShapeSize: artShapeLoader.item ? Qt.size(artShapeLoader.item.width, artShapeLoader.item.height) : Qt.size(-1, -1);
1819Item {
tests/plugins/Dash/cardcreator/2.res+1
@@ -13,6 +13,7 @@ AbstractButton {
1313 property bool asynchronous: true;
1414 property bool showHeader: true;
1515 implicitWidth: childrenRect.width;
16+ enabled: template == null || (template["non-interactive"] !== undefined ? !template["non-interactive"] : true);
1617Loader {
1718 id: backgroundLoader;
1819 objectName: "backgroundLoader";
tests/plugins/Dash/cardcreator/3.res+1
@@ -13,6 +13,7 @@ AbstractButton {
1313 property bool asynchronous: true;
1414 property bool showHeader: true;
1515 implicitWidth: childrenRect.width;
16+ enabled: template == null || (template["non-interactive"] !== undefined ? !template["non-interactive"] : true);
1617onArtShapeBorderSourceChanged: { if (artShapeBorderSource !== undefined && artShapeLoader.item) artShapeLoader.item.borderSource = artShapeBorderSource; }
1718readonly property size artShapeSize: artShapeLoader.item ? Qt.size(artShapeLoader.item.width, artShapeLoader.item.height) : Qt.size(-1, -1);
1819Item {
tests/plugins/Dash/cardcreator/4.res+1
@@ -13,6 +13,7 @@ AbstractButton {
1313 property bool asynchronous: true;
1414 property bool showHeader: true;
1515 implicitWidth: childrenRect.width;
16+ enabled: template == null || (template["non-interactive"] !== undefined ? !template["non-interactive"] : true);
1617readonly property size artShapeSize: Qt.size(-1, -1);
1718readonly property int headerHeight: row.height;
1819Row {
tests/plugins/Dash/cardcreator/5.res+1
@@ -13,6 +13,7 @@ AbstractButton {
1313 property bool asynchronous: true;
1414 property bool showHeader: true;
1515 implicitWidth: childrenRect.width;
16+ enabled: template == null || (template["non-interactive"] !== undefined ? !template["non-interactive"] : true);
1617onArtShapeBorderSourceChanged: { if (artShapeBorderSource !== undefined && artShapeLoader.item) artShapeLoader.item.borderSource = artShapeBorderSource; }
1718readonly property size artShapeSize: artShapeLoader.item ? Qt.size(artShapeLoader.item.width, artShapeLoader.item.height) : Qt.size(-1, -1);
1819Item {
tests/plugins/Dash/cardcreator/6.res+1
@@ -13,6 +13,7 @@ AbstractButton {
1313 property bool asynchronous: true;
1414 property bool showHeader: true;
1515 implicitWidth: childrenRect.width;
16+ enabled: template == null || (template["non-interactive"] !== undefined ? !template["non-interactive"] : true);
1617Loader {
1718 id: backgroundLoader;
1819 objectName: "backgroundLoader";
tests/plugins/Dash/cardcreator/7.res+1
@@ -13,6 +13,7 @@ AbstractButton {
1313 property bool asynchronous: true;
1414 property bool showHeader: true;
1515 implicitWidth: childrenRect.width;
16+ enabled: template == null || (template["non-interactive"] !== undefined ? !template["non-interactive"] : true);
1617Loader {
1718 id: backgroundLoader;
1819 objectName: "backgroundLoader";