X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserPC.git;a=blobdiff_plain;f=src%2Fwidgets%2FTabWidget.cpp;fp=src%2Fwidgets%2FTabWidget.cpp;h=4a3c1455ecc63acc1c327bcd5bddd2683ac83d76;hp=eb82f23d2fed09c49c4739479963ff2aba519fc5;hb=150a354325500a3c3f8f8f7ee0e0ee30cd631205;hpb=6acd73c4148bac2a8c2f637e70080a43b12fd14e 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);