+void TabWidget::applySpellCheckLanguages() const
+{
+ // Get the number of tab.
+ int numberOfTabs = tabWidgetPointer->count();
+
+ // Set the spell check languages for each tab.
+ for (int i = 0; i < numberOfTabs; ++i)
+ {
+ // Get the WebEngine view pointer.
+ PrivacyWebEngineView *webEngineViewPointer = qobject_cast<PrivacyWebEngineView *>(tabWidgetPointer->currentWidget());
+
+ // Get the WebEngine page pointer.
+ QWebEnginePage *webEnginePagePointer = webEngineViewPointer->page();
+
+ // Get the WebEngine profile pointer.
+ QWebEngineProfile *webEngineProfilePointer = webEnginePagePointer->profile();
+
+ // Set the spell check languages.
+ webEngineProfilePointer->setSpellCheckLanguages(Settings::spellCheckLanguages());
+ }
+}
+