equal
deleted
inserted
replaced
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): |