From 150a354325500a3c3f8f8f7ee0e0ee30cd631205 Mon Sep 17 00:00:00 2001 From: Soren Stoutner Date: Mon, 15 Aug 2022 16:47:45 -0700 Subject: [PATCH] Enable English spell checking. --- src/widgets/TabWidget.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/widgets/TabWidget.cpp b/src/widgets/TabWidget.cpp index eb82f23..4a3c145 100644 --- a/src/widgets/TabWidget.cpp +++ b/src/widgets/TabWidget.cpp @@ -325,6 +325,12 @@ PrivacyWebEngineView* TabWidget::addTab(const bool focusNewWebEngineView) tabWidgetPointer->setTabIcon(tabIndex, icon); }); + // Enable spell checking. + webEngineProfilePointer->setSpellCheckEnabled(true); + + // Set the spell check language. + webEngineProfilePointer->setSpellCheckLanguages({QStringLiteral("en_US")}); + // Move to the new tab. tabWidgetPointer->setCurrentIndex(newTabIndex); -- 2.45.2