From 097b3b3323ab6641c17318057e100543b60bca77 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Mon, 30 Mar 2009 16:09:23 +0200 Subject: 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 Task-number: 245503 --- tools/designer/src/lib/shared/textpropertyeditor.cpp | 1 + 1 file changed, 1 insertion(+) 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(); } -- cgit v0.12