11 import os |
11 import os |
12 |
12 |
13 from PyQt6.QtCore import QCoreApplication, QDir, QLibraryInfo, QLocale, Qt, pyqtSlot |
13 from PyQt6.QtCore import QCoreApplication, QDir, QLibraryInfo, QLocale, Qt, pyqtSlot |
14 from PyQt6.QtWidgets import QListWidgetItem |
14 from PyQt6.QtWidgets import QListWidgetItem |
15 |
15 |
16 from eric7 import Globals, Preferences |
16 from eric7 import Preferences |
|
17 from eric7.SystemUtilities import OSUtilities |
17 |
18 |
18 from .ConfigurationPageBase import ConfigurationPageBase |
19 from .ConfigurationPageBase import ConfigurationPageBase |
19 from .Ui_WebBrowserSpellCheckingPage import Ui_WebBrowserSpellCheckingPage |
20 from .Ui_WebBrowserSpellCheckingPage import Ui_WebBrowserSpellCheckingPage |
20 |
21 |
21 |
22 |
38 self.spellCheckEnabledCheckBox.setChecked( |
39 self.spellCheckEnabledCheckBox.setChecked( |
39 Preferences.getWebBrowser("SpellCheckEnabled") |
40 Preferences.getWebBrowser("SpellCheckEnabled") |
40 ) |
41 ) |
41 self.on_spellCheckEnabledCheckBox_clicked() |
42 self.on_spellCheckEnabledCheckBox_clicked() |
42 |
43 |
43 if Globals.isMacPlatform(): |
44 if OSUtilities.isMacPlatform(): |
44 self.__dictionaryDirectories = { |
45 self.__dictionaryDirectories = { |
45 QDir.cleanPath( |
46 QDir.cleanPath( |
46 QCoreApplication.applicationDirPath() |
47 QCoreApplication.applicationDirPath() |
47 + "/../Resources/qtwebengine_dictionaries" |
48 + "/../Resources/qtwebengine_dictionaries" |
48 ), |
49 ), |