Commit 33b11fb2 authored by Christoph Cullmann's avatar Christoph Cullmann 🍨
Browse files

use QPlainTextEdit to fix display issues

text is cut off after some lines with the QTextEdit/Browser

!873
parent 223bade4
Pipeline #227694 passed with stage
in 14 minutes and 44 seconds
......@@ -271,7 +271,7 @@ void LSPClientConfigPage::configUrlChanged()
void LSPClientConfigPage::updateHighlighters()
{
for (auto textEdit : {ui->userConfig, static_cast<QTextEdit *>(ui->defaultConfig)}) {
for (auto textEdit : {ui->userConfig, ui->defaultConfig}) {
// setup JSON highlighter for the default json stuff
auto highlighter = new KSyntaxHighlighting::SyntaxHighlighter(textEdit->document());
highlighter->setDefinition(KTextEditor::Editor::instance()->repository().definitionForFileName(QStringLiteral("settings.json")));
......
......@@ -293,13 +293,7 @@
</layout>
</item>
<item>
<widget class="QTextEdit" name="userConfig">
<property name="lineWrapMode">
<enum>QTextEdit::NoWrap</enum>
</property>
<property name="acceptRichText">
<bool>false</bool>
</property>
<widget class="QPlainTextEdit" name="userConfig">
</widget>
</item>
<item>
......@@ -317,12 +311,9 @@
</attribute>
<layout class="QVBoxLayout" name="verticalLayout_9">
<item>
<widget class="QTextBrowser" name="defaultConfig">
<property name="lineWrapMode">
<enum>QTextEdit::NoWrap</enum>
</property>
<property name="acceptRichText">
<bool>false</bool>
<widget class="QPlainTextEdit" name="defaultConfig">
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment