|
@@ -66,6 +66,8 @@ void MarkdownEditorPage::loadInternal()
|
|
|
m_autoBreakCheckBox->setChecked(markdownConfig.getAutoBreakEnabled());
|
|
|
|
|
|
m_linkifyCheckBox->setChecked(markdownConfig.getLinkifyEnabled());
|
|
|
+
|
|
|
+ m_indentFirstLineCheckBox->setChecked(markdownConfig.getIndentFirstLineEnabled());
|
|
|
}
|
|
|
|
|
|
void MarkdownEditorPage::saveInternal()
|
|
@@ -97,6 +99,8 @@ void MarkdownEditorPage::saveInternal()
|
|
|
|
|
|
markdownConfig.setLinkifyEnabled(m_linkifyCheckBox->isChecked());
|
|
|
|
|
|
+ markdownConfig.setIndentFirstLineEnabled(m_indentFirstLineCheckBox->isChecked());
|
|
|
+
|
|
|
EditorPage::notifyEditorConfigChange();
|
|
|
}
|
|
|
|
|
@@ -164,6 +168,16 @@ QGroupBox *MarkdownEditorPage::setupReadGroup()
|
|
|
this, &MarkdownEditorPage::pageIsChanged);
|
|
|
}
|
|
|
|
|
|
+ {
|
|
|
+ const QString label(tr("Indent first line"));
|
|
|
+ m_indentFirstLineCheckBox = WidgetsFactory::createCheckBox(label, box);
|
|
|
+ m_indentFirstLineCheckBox->setToolTip(tr("Indent the first line of each paragraph"));
|
|
|
+ layout->addRow(m_indentFirstLineCheckBox);
|
|
|
+ addSearchItem(label, m_indentFirstLineCheckBox->toolTip(), m_indentFirstLineCheckBox);
|
|
|
+ connect(m_indentFirstLineCheckBox, &QCheckBox::stateChanged,
|
|
|
+ this, &MarkdownEditorPage::pageIsChanged);
|
|
|
+ }
|
|
|
+
|
|
|
return box;
|
|
|
}
|
|
|
|