]> gitweb.stoutner.com Git - PrivacyBrowserPC.git/commitdiff
Enable English spell checking.
authorSoren Stoutner <soren@stoutner.com>
Mon, 15 Aug 2022 23:47:45 +0000 (16:47 -0700)
committerSoren Stoutner <soren@stoutner.com>
Mon, 15 Aug 2022 23:47:45 +0000 (16:47 -0700)
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);