summaryrefslogtreecommitdiffstats
path: root/tools/designer
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-08-05 13:13:58 (GMT)
committerFriedemann Kleint <Friedemann.Kleint@nokia.com>2010-08-05 13:13:58 (GMT)
commit6ca2fe678740f4830de2388e9b2928813561373c (patch)
tree6cf743b9aad27482c7e9dba9a087c5f5dff10e2f /tools/designer
parentf3f95d4282ffbfb307e98d20a166ced4cc982061 (diff)
downloadQt-6ca2fe678740f4830de2388e9b2928813561373c.zip
Qt-6ca2fe678740f4830de2388e9b2928813561373c.tar.gz
Qt-6ca2fe678740f4830de2388e9b2928813561373c.tar.bz2
Designer: Prevent rich text from being copied into style sheets.
Reviewed-by: Lasse Holmstedt <lasse.holmstedt@nokia.com> Task-number: QTCREATORBUG-1952
Diffstat (limited to 'tools/designer')
-rw-r--r--tools/designer/src/lib/shared/stylesheeteditor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/designer/src/lib/shared/stylesheeteditor.cpp b/tools/designer/src/lib/shared/stylesheeteditor.cpp
index b76d700..e809447 100644
--- a/tools/designer/src/lib/shared/stylesheeteditor.cpp
+++ b/tools/designer/src/lib/shared/stylesheeteditor.cpp
@@ -79,6 +79,7 @@ StyleSheetEditor::StyleSheetEditor(QWidget *parent)
: QTextEdit(parent)
{
setTabStopWidth(fontMetrics().width(QLatin1Char(' '))*4);
+ setAcceptRichText(false);
new CssHighlighter(document());
}