summaryrefslogtreecommitdiffstats
path: root/tools/designer/src
diff options
context:
space:
mode:
authorJarek Kobus <jkobus@trolltech.com>2009-03-30 14:09:23 (GMT)
committerJarek Kobus <jkobus@trolltech.com>2009-03-30 14:59:12 (GMT)
commit097b3b3323ab6641c17318057e100543b60bca77 (patch)
treef91f61a936f5eab26d9bf0cbd18f73b914be30f2 /tools/designer/src
parent34059fba55816496d2570b3306ac2b631b12a5c6 (diff)
downloadQt-097b3b3323ab6641c17318057e100543b60bca77.zip
Qt-097b3b3323ab6641c17318057e100543b60bca77.tar.gz
Qt-097b3b3323ab6641c17318057e100543b60bca77.tar.bz2
Fix backslashes in string propeerty in property browser
Inside DesignerEditorFactory::createTextEditor() we first do setText() and afterwards we do setTextPropertyValidationMode(). setTextPropertyValidationMode() didn't update the cached text. Below patch fixes it. Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com> Task-number: 245503
Diffstat (limited to 'tools/designer/src')
-rw-r--r--tools/designer/src/lib/shared/textpropertyeditor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/designer/src/lib/shared/textpropertyeditor.cpp b/tools/designer/src/lib/shared/textpropertyeditor.cpp
index cf12842..95a9f85 100644
--- a/tools/designer/src/lib/shared/textpropertyeditor.cpp
+++ b/tools/designer/src/lib/shared/textpropertyeditor.cpp
@@ -293,6 +293,7 @@ namespace qdesigner_internal {
}
setFocusProxy(m_lineEdit);
+ setText(m_cachedText);
markIntermediateState();
}