1414
1515#include " editorsettingswidget.h"
1616
17- #include < QRegularExpression>
1817#include < QSignalBlocker>
1918
2019#include " services/settingsservice.h"
@@ -82,19 +81,6 @@ void EditorSettingsWidget::readSettings() {
8281 ui->useTabIndentCheckBox ->setChecked (
8382 settings.value (QStringLiteral (" Editor/useTabIndent" )).toBool ());
8483 ui->indentSizeSpinBox ->setValue (Utils::Misc::indentSize ());
85- ui->markdownLspEnabledCheckBox ->setChecked (
86- settings.value (QStringLiteral (" Editor/markdownLspEnabled" ), false ).toBool ());
87- ui->markdownLspCommandLineEdit ->setText (
88- settings.value (QStringLiteral (" Editor/markdownLspCommand" ), QStringLiteral (" marksman" ))
89- .toString ());
90- ui->markdownLspArgumentsLineEdit ->setText (
91- settings.value (QStringLiteral (" Editor/markdownLspArguments" ))
92- .toStringList ()
93- .join (QLatin1Char (' ' )));
94- ui->markdownLspVerboseLoggingCheckBox ->setChecked (
95- settings.value (QStringLiteral (" Editor/markdownLspVerboseLogging" ), false ).toBool ());
96- // Initialize dependent widget state for LSP fields
97- on_markdownLspEnabledCheckBox_toggled (ui->markdownLspEnabledCheckBox ->isChecked ());
9884 ui->cursorWidthSpinBox ->setValue (settings.value (QStringLiteral (" cursorWidth" ), 1 ).toInt ());
9985 ui->timeFormatLineEdit ->setText (settings.value (QStringLiteral (" insertTimeFormat" )).toString ());
10086}
@@ -138,19 +124,6 @@ void EditorSettingsWidget::storeSettings() {
138124 ui->disableCursorBlinkingCheckBox ->isChecked ());
139125 settings.setValue (QStringLiteral (" Editor/useTabIndent" ), ui->useTabIndentCheckBox ->isChecked ());
140126 settings.setValue (QStringLiteral (" Editor/indentSize" ), ui->indentSizeSpinBox ->value ());
141- settings.setValue (QStringLiteral (" Editor/markdownLspEnabled" ),
142- ui->markdownLspEnabledCheckBox ->isChecked ());
143- settings.setValue (QStringLiteral (" Editor/markdownLspCommand" ),
144- ui->markdownLspCommandLineEdit ->text ().trimmed ());
145- settings.setValue (QStringLiteral (" Editor/markdownLspArguments" ),
146- ui->markdownLspArgumentsLineEdit ->text ().split (
147- #if (QT_VERSION < QT_VERSION_CHECK(5, 15, 0))
148- QRegularExpression (QStringLiteral (" \\ s+" )), QString::SkipEmptyParts));
149- #else
150- QRegularExpression (QStringLiteral (" \\ s+" )), Qt::SkipEmptyParts));
151- #endif
152- settings.setValue (QStringLiteral (" Editor/markdownLspVerboseLogging" ),
153- ui->markdownLspVerboseLoggingCheckBox ->isChecked ());
154127 settings.setValue (QStringLiteral (" cursorWidth" ), ui->cursorWidthSpinBox ->value ());
155128 settings.setValue (QStringLiteral (" insertTimeFormat" ), ui->timeFormatLineEdit ->text ());
156129}
@@ -169,17 +142,6 @@ void EditorSettingsWidget::on_markdownHighlightingCheckBox_toggled(bool checked)
169142 ui->fullyHighlightedBlockquotesCheckBox ->setEnabled (checked);
170143}
171144
172- /* *
173- * Enables or disables the LSP command, arguments fields and their labels
174- */
175- void EditorSettingsWidget::on_markdownLspEnabledCheckBox_toggled (bool checked) {
176- ui->markdownLspCommandLineEdit ->setEnabled (checked);
177- ui->markdownLspArgumentsLineEdit ->setEnabled (checked);
178- ui->markdownLspCommandLabel ->setEnabled (checked);
179- ui->markdownLspArgumentsLabel ->setEnabled (checked);
180- ui->markdownLspVerboseLoggingCheckBox ->setEnabled (checked);
181- }
182-
183145/* *
184146 * Enables or disables the wiki link filename auto-select checkbox and emits
185147 * a cross-page signal so the editor font color widget can update its visibility
0 commit comments