Updated alignment
commit4acc103cadc54f25c66bd4913ab3a1f6ab8f23cd
authorAndrea Cimitan <andrea.cimitan@gmail.com>
dateMon 29 Sep 2014, 09:19 (12 years ago)
parent219e3b2
plugins/Dash/CardCreator.js+1−1
@@ -223,7 +223,7 @@ var kTitleLabelCode = 'Label { \n\
223223 visible: showHeader %3; \n\
224224 text: root.title; \n\
225225 font.weight: cardData && cardData["subtitle"] ? Font.DemiBold : Font.Normal; \n\
226− horizontalAlignment: lineCount === 2 ? Text.AlignLeft : root.titleAlignment; \n\
226+ horizontalAlignment: root.titleAlignment; \n\
227227 }\n';
228228
229229// %1 is used as extra anchors of emblemIcon
tests/plugins/Dash/cardcreator/1.res+1−1
@@ -75,7 +75,7 @@ Label {
7575 visible: showHeader ;
7676 text: root.title;
7777 font.weight: cardData && cardData["subtitle"] ? Font.DemiBold : Font.Normal;
78− horizontalAlignment: lineCount === 2 ? Text.AlignLeft : root.titleAlignment;
78+ horizontalAlignment: root.titleAlignment;
7979 }
8080UbuntuShape {
8181 id: touchdown;
tests/plugins/Dash/cardcreator/2.res+1−1
@@ -99,7 +99,7 @@ Image {
9999 visible: showHeader ;
100100 text: root.title;
101101 font.weight: cardData && cardData["subtitle"] ? Font.DemiBold : Font.Normal;
102− horizontalAlignment: lineCount === 2 ? Text.AlignLeft : root.titleAlignment;
102+ horizontalAlignment: root.titleAlignment;
103103 }
104104 ,Label {
105105 id: subtitleLabel;
tests/plugins/Dash/cardcreator/3.res+1−1
@@ -75,7 +75,7 @@ Label {
7575 visible: showHeader ;
7676 text: root.title;
7777 font.weight: cardData && cardData["subtitle"] ? Font.DemiBold : Font.Normal;
78− horizontalAlignment: lineCount === 2 ? Text.AlignLeft : root.titleAlignment;
78+ horizontalAlignment: root.titleAlignment;
7979 }
8080Label {
8181 id: subtitleLabel;
tests/plugins/Dash/cardcreator/4.res+1−1
@@ -79,7 +79,7 @@ Label {
7979 visible: showHeader ;
8080 text: root.title;
8181 font.weight: cardData && cardData["subtitle"] ? Font.DemiBold : Font.Normal;
82− horizontalAlignment: lineCount === 2 ? Text.AlignLeft : root.titleAlignment;
82+ horizontalAlignment: root.titleAlignment;
8383 }
8484,Label {
8585 id: subtitleLabel;
tests/plugins/Dash/cardcreator/5.res+1−1
@@ -119,7 +119,7 @@ Label {
119119 visible: showHeader && overlayLoader.active;
120120 text: root.title;
121121 font.weight: cardData && cardData["subtitle"] ? Font.DemiBold : Font.Normal;
122− horizontalAlignment: lineCount === 2 ? Text.AlignLeft : root.titleAlignment;
122+ horizontalAlignment: root.titleAlignment;
123123 }
124124Label {
125125 id: subtitleLabel;
tests/plugins/Dash/cardcreator/6.res+1−1
@@ -74,7 +74,7 @@ Item {
7474 visible: showHeader ;
7575 text: root.title;
7676 font.weight: cardData && cardData["subtitle"] ? Font.DemiBold : Font.Normal;
77− horizontalAlignment: lineCount === 2 ? Text.AlignLeft : root.titleAlignment;
77+ horizontalAlignment: root.titleAlignment;
7878 }
7979,Label {
8080 id: subtitleLabel;
tests/plugins/Dash/cardcreator/7.res+1−1
@@ -100,7 +100,7 @@ Image {
100100 visible: showHeader ;
101101 text: root.title;
102102 font.weight: cardData && cardData["subtitle"] ? Font.DemiBold : Font.Normal;
103− horizontalAlignment: lineCount === 2 ? Text.AlignLeft : root.titleAlignment;
103+ horizontalAlignment: root.titleAlignment;
104104 }
105105,Label {
106106 id: subtitleLabel;