moving variables for better qml inheritance
This commit is contained in:
parent
4181268843
commit
e0409f87ff
1 changed files with 4 additions and 3 deletions
|
@ -84,14 +84,15 @@ Item {
|
|||
function updateVAlignment(alignment) {
|
||||
switch (alignment) {
|
||||
case "top" :
|
||||
representation.verticalAlignment = Text.AlignTop;
|
||||
root.vTextAlignment = Text.AlignTop;
|
||||
break;
|
||||
case "center" :
|
||||
representation.verticalAlignment = Text.AlignVCenter;
|
||||
root.vTextAlignment = Text.AlignVCenter;
|
||||
break;
|
||||
case "bottom" :
|
||||
representation.verticalAlignment = Text.AlignBottom;
|
||||
root.vTextAlignment = Text.AlignBottom;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue