Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
Kate
Commits
aba9082f
Commit
aba9082f
authored
Sep 14, 2022
by
Waqar Ahmed
Browse files
Make diff editor readonly
parent
2e6972e1
Pipeline
#231688
passed with stage
in 4 minutes and 22 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
apps/lib/diff/diffeditor.cpp
View file @
aba9082f
...
...
@@ -91,6 +91,8 @@ DiffEditor::DiffEditor(DiffParams::Flags f, QWidget *parent)
});
connect
(
document
(),
&
QTextDocument
::
blockCountChanged
,
this
,
&
DiffEditor
::
updateLineNumberAreaWidth
);
connect
(
this
,
&
QPlainTextEdit
::
updateRequest
,
this
,
&
DiffEditor
::
updateLineNumberArea
);
setReadOnly
(
true
);
}
void
DiffEditor
::
updateDiffColors
(
bool
darkMode
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment