made the alignment of text persistent and editable
This commit is contained in:
parent
2e46f403be
commit
672158a316
3 changed files with 16 additions and 12 deletions
|
@ -23,8 +23,8 @@ Item {
|
|||
editMode: true
|
||||
imageSource: imageBackground
|
||||
videoSource: videoBackground
|
||||
horizontalAlignment: hTextAlignment
|
||||
verticalAlignment: vTextAlignment
|
||||
hTextAlignment: root.hTextAlignment
|
||||
vTextAlignment: root.vTextAlignment
|
||||
preview: true
|
||||
}
|
||||
|
||||
|
@ -56,7 +56,7 @@ Item {
|
|||
function updateVAlignment(alignment) {
|
||||
switch (alignment) {
|
||||
case "top" :
|
||||
representation.verticalAlignment = Text.AlignBottom;
|
||||
representation.verticalAlignment = Text.AlignTop;
|
||||
break;
|
||||
case "center" :
|
||||
representation.verticalAlignment = Text.AlignVCenter;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue