on xenial help sign in
Proper title alignment.
commit4bb54614ca6e63f2ad51b9b64effd76513a12eb5 authorMichał Karnicki <michal.karnicki@canonical.com> dateFri 7 Feb 2014, 09:45 (13 years ago) parent383bfc2
2 files changed+3−3
qml/Dash/CardTool.qml+1−1 tests/qmltests/Dash/tst_CardTool.qml+2−2
qml/Dash/CardTool.qml+1−1
@@ -120,7 +120,7 @@ Item {
120120 var isOnlyTextComponent = !hasSubtitle && !hasPrice && !hasSummary;
121121 if (!isOnlyTextComponent) return Text.AlignLeft;
122122
123− return (template["card-layout"] === "horizontal") ? Text.AlignHCenter : Text.AlignLeft;
123+ return (template["card-layout"] === "horizontal") ? Text.AlignLeft : Text.AlignHCenter;
124124 }
125125
126126 Card {
tests/qmltests/Dash/tst_CardTool.qml+2−2
@@ -323,9 +323,9 @@ Rectangle {
323323 function test_card_header_component_alignment_data() {
324324 return [
325325 { tag: "Title - vertical", component: "titleLabel", property: "headerAlignment",
326− value: Text.AlignLeft, index: 11, layout_index: 0 },
326+ value: Text.AlignHCenter, index: 11, layout_index: 0 },
327327 { tag: "Title - horizontal", component: "titleLabel", property: "headerAlignment",
328− value: Text.AlignHCenter, index: 12, layout_index: 0},
328+ value: Text.AlignLeft, index: 12, layout_index: 0},
329329 { tag: "Title, subtitle - vertical", component: "titleLabel", property: "headerAlignment",
330330 value: Text.AlignLeft, index: 13, layout_index: 0},
331331 { tag: "Title, price - horizontal", component: "titleLabel", property: "headerAlignment",