summaryrefslogtreecommitdiffstats
path: root/src/declarative/graphicsitems/qdeclarativetext.cpp
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-06-02 06:04:38 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-06-02 06:05:46 (GMT)
commit04eb4d19a32c92453c6a74037e4ddf065e5e4f49 (patch)
treeb54e527866d535c243fe6ea35cf8aaa8f826aeb2 /src/declarative/graphicsitems/qdeclarativetext.cpp
parent3609497406ad3c4128faeac8a4fb4cddf79deaf1 (diff)
downloadQt-04eb4d19a32c92453c6a74037e4ddf065e5e4f49.zip
Qt-04eb4d19a32c92453c6a74037e4ddf065e5e4f49.tar.gz
Qt-04eb4d19a32c92453c6a74037e4ddf065e5e4f49.tar.bz2
Text should update when the alignment changes.
Diffstat (limited to 'src/declarative/graphicsitems/qdeclarativetext.cpp')
-rw-r--r--src/declarative/graphicsitems/qdeclarativetext.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativetext.cpp b/src/declarative/graphicsitems/qdeclarativetext.cpp
index a6bf5d4..f4722c3 100644
--- a/src/declarative/graphicsitems/qdeclarativetext.cpp
+++ b/src/declarative/graphicsitems/qdeclarativetext.cpp
@@ -479,6 +479,7 @@ void QDeclarativeText::setHAlign(HAlignment align)
return;
d->hAlign = align;
+ update();
emit horizontalAlignmentChanged(align);
}
@@ -495,6 +496,7 @@ void QDeclarativeText::setVAlign(VAlignment align)
return;
d->vAlign = align;
+ update();
emit verticalAlignmentChanged(align);
}