From: Soren Stoutner Date: Mon, 15 Aug 2022 23:47:45 +0000 (-0700) Subject: Enable English spell checking. X-Git-Tag: v0.1~14 X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserPC.git;a=commitdiff_plain;h=150a354325500a3c3f8f8f7ee0e0ee30cd631205;hp=6acd73c4148bac2a8c2f637e70080a43b12fd14e Enable English spell checking. --- 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);