@@ -60,7 +60,7 @@ private slots:
6060 void toolButtonRemoveProjectClicked ();
6161 void listWidgetItemChanged ( QListWidgetItem* item );
6262
63- private:
63+ private:
6464 void updateWithSettings ( const SpellCheckerCoreSettings* const settings );
6565
6666 Ui::SpellCheckerCoreOptionsWidget ui;
@@ -96,6 +96,7 @@ SpellCheckerCoreOptionsWidget::SpellCheckerCoreOptionsWidget( SpellCheckerCoreSe
9696 * is for the toolbar since nowhere else is a normal one needed. */
9797 ui.toolButtonRemoveProject ->setIcon ( Utils::Icon ( { { " :/utils/images/minus.png"
9898 , Utils::Theme::PaletteText } }, Utils::Icon::Tint ).icon () );
99+ ui.buttonUnderlineColor ->setAlphaAllowed ( false );
99100
100101 const QMap<QString, ISpellChecker*> availableSpellCheckers = SpellCheckerCore::instance ()->addedSpellCheckers ();
101102 // todo: change QMap to std::map and use std::views::keys
@@ -129,6 +130,7 @@ SpellCheckerCoreSettings SpellCheckerCoreOptionsWidget::settings()
129130 settings.checkExternalFiles = ui.checkBoxCheckExternal ->isChecked ();
130131 settings.projectsToIgnore = m_projectsToIgnore;
131132 settings.replaceAllFromRightClick = ui.checkBoxReplaceAllRightClick ->isChecked ();
133+ settings.underlineColor = ui.buttonUnderlineColor ->color ();
132134 return settings;
133135}
134136// --------------------------------------------------
@@ -180,6 +182,7 @@ void SpellCheckerCoreOptionsWidget::updateWithSettings( const SpellCheckerCoreSe
180182 ui.listWidget ->clear ();
181183 ui.listWidget ->addItems ( m_projectsToIgnore );
182184 ui.checkBoxReplaceAllRightClick ->setChecked ( settings->replaceAllFromRightClick );
185+ ui.buttonUnderlineColor ->setColor ( settings->underlineColor );
183186}
184187// --------------------------------------------------
185188
0 commit comments