diff options
author | Jarek Kobus <jkobus@trolltech.com> | 2010-03-04 08:23:53 (GMT) |
---|---|---|
committer | Jarek Kobus <jkobus@trolltech.com> | 2010-03-04 08:34:33 (GMT) |
commit | 8d6b5483e34d27f1ee45af9d9fadb87525c9f915 (patch) | |
tree | 18b1a474335a3a3f44a73ec89aa4e910c2f4079d /src/gui/text | |
parent | a3e7f41b085605b6856686b5dfd29818308bd820 (diff) | |
download | Qt-8d6b5483e34d27f1ee45af9d9fadb87525c9f915.zip Qt-8d6b5483e34d27f1ee45af9d9fadb87525c9f915.tar.gz Qt-8d6b5483e34d27f1ee45af9d9fadb87525c9f915.tar.bz2 |
Make QLabel::text a reloadable property
In this way we can correctly load / reload a label in case it contains
a rich text with a reference to the image taken from resources.
Since QLabel::setText() ignores the call in case we try to set the same
text, we force the reload by setting the empty string in between.
For performance reasons we do it only in cases when the text value
contains :/ (only in this case it might have a reference
to the resources).
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Task-number: QTBUG-8347
Diffstat (limited to 'src/gui/text')
0 files changed, 0 insertions, 0 deletions