summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlexis Menard <alexis.menard@nokia.com>2010-03-18 04:55:34 (GMT)
committerAlexis Menard <alexis.menard@nokia.com>2010-03-23 05:00:09 (GMT)
commitfad4cdb70323a2c1925c31917ce2b6cff62748b0 (patch)
tree42eb46b2a45f792391475ca5528b851f0ee38a8b /src
parentccf9a964f55ce6b7404f2b2fbd9345697d37bea3 (diff)
downloadQt-fad4cdb70323a2c1925c31917ce2b6cff62748b0.zip
Qt-fad4cdb70323a2c1925c31917ce2b6cff62748b0.tar.gz
Qt-fad4cdb70323a2c1925c31917ce2b6cff62748b0.tar.bz2
Changing the alignment property should trigger a repaint.
Just clear the cache when the property changes. Task-number:QTBUG-8155 Reviewed-by:Yann Bodson
Diffstat (limited to 'src')
-rw-r--r--src/declarative/graphicsitems/qdeclarativetextinput.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qdeclarativetextinput.cpp b/src/declarative/graphicsitems/qdeclarativetextinput.cpp
index 01167dc..b049728 100644
--- a/src/declarative/graphicsitems/qdeclarativetextinput.cpp
+++ b/src/declarative/graphicsitems/qdeclarativetextinput.cpp
@@ -220,6 +220,7 @@ void QDeclarativeTextInput::setHAlign(HAlignment align)
if(align == d->hAlign)
return;
d->hAlign = align;
+ updateRect();
emit horizontalAlignmentChanged(d->hAlign);
}