moving variables for better qml inheritance

This commit is contained in:
Chris Cochrun 2022-04-26 13:11:09 -05:00
parent 4181268843
commit e0409f87ff

View file

@ -84,14 +84,15 @@ Item {
function updateVAlignment(alignment) { function updateVAlignment(alignment) {
switch (alignment) { switch (alignment) {
case "top" : case "top" :
representation.verticalAlignment = Text.AlignTop; root.vTextAlignment = Text.AlignTop;
break; break;
case "center" : case "center" :
representation.verticalAlignment = Text.AlignVCenter; root.vTextAlignment = Text.AlignVCenter;
break; break;
case "bottom" : case "bottom" :
representation.verticalAlignment = Text.AlignBottom; root.vTextAlignment = Text.AlignBottom;
break; break;
} }
} }
} }