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) {
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue