]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/blobdiff - src/widgets/TabWidget.cpp
Enable English spell checking.
[PrivacyBrowserPC.git] / src / widgets / TabWidget.cpp
index eb82f23d2fed09c49c4739479963ff2aba519fc5..4a3c1455ecc63acc1c327bcd5bddd2683ac83d76 100644 (file)
@@ -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);