diff options
Diffstat (limited to 'examples/widgets/widgets/codeeditor/codeeditor.cpp')
-rw-r--r-- | examples/widgets/widgets/codeeditor/codeeditor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/widgets/widgets/codeeditor/codeeditor.cpp b/examples/widgets/widgets/codeeditor/codeeditor.cpp index 2a7865ce6e..7da0930301 100644 --- a/examples/widgets/widgets/codeeditor/codeeditor.cpp +++ b/examples/widgets/widgets/codeeditor/codeeditor.cpp @@ -79,7 +79,7 @@ int CodeEditor::lineNumberAreaWidth() //![slotUpdateExtraAreaWidth] void CodeEditor::updateLineNumberAreaWidth(int /* newBlockCount */) -{ +{ setViewportMargins(lineNumberAreaWidth(), 0, 0, 0); } @@ -120,7 +120,7 @@ void CodeEditor::highlightCurrentLine() if (!isReadOnly()) { QTextEdit::ExtraSelection selection; - + QColor lineColor = QColor(Qt::yellow).lighter(160); selection.format.setBackground(lineColor); |