tools/designer/src/lib/shared/stylesheeteditor.cpp
changeset 37 758a864f9613
parent 18 2f34d5167611
equal deleted inserted replaced
36:ef0373b55136 37:758a864f9613
    77 
    77 
    78 StyleSheetEditor::StyleSheetEditor(QWidget *parent)
    78 StyleSheetEditor::StyleSheetEditor(QWidget *parent)
    79     : QTextEdit(parent)
    79     : QTextEdit(parent)
    80 {
    80 {
    81     setTabStopWidth(fontMetrics().width(QLatin1Char(' '))*4);
    81     setTabStopWidth(fontMetrics().width(QLatin1Char(' '))*4);
       
    82     setAcceptRichText(false);
    82     new CssHighlighter(document());
    83     new CssHighlighter(document());
    83 }
    84 }
    84 
    85 
    85 // --- StyleSheetEditorDialog
    86 // --- StyleSheetEditorDialog
    86 StyleSheetEditorDialog::StyleSheetEditorDialog(QDesignerFormEditorInterface *core, QWidget *parent, Mode mode):
    87 StyleSheetEditorDialog::StyleSheetEditorDialog(QDesignerFormEditorInterface *core, QWidget *parent, Mode mode):