src/eric7/UI/Previewers/PreviewerQSS.py

branch
eric7
changeset 9624
b47dfa7a137d
parent 9473
3f23dbf37dbe
child 9653
e67609152c5e
--- a/src/eric7/UI/Previewers/PreviewerQSS.py	Sun Dec 18 14:19:10 2022 +0100
+++ b/src/eric7/UI/Previewers/PreviewerQSS.py	Sun Dec 18 19:33:46 2022 +0100
@@ -12,11 +12,12 @@
 from PyQt6.QtCore import Qt, pyqtSlot
 from PyQt6.QtWidgets import QHeaderView, QLabel, QListWidgetItem, QMenu, QWidget
 
-from eric7 import Preferences, Utilities
+from eric7 import Preferences
 from eric7.EricGui import EricPixmapCache
 from eric7.EricWidgets.EricApplication import ericApp
 from eric7.EricWidgets.EricPathPicker import EricPathPickerModes
 from eric7.Globals import getConfig
+from eric7.SystemUtilities import FileSystemUtilities
 
 from .Ui_PreviewerQSS import Ui_PreviewerQSS
 
@@ -119,7 +120,9 @@
                                 getConfig("ericIconDir"), "StyleIcons"
                             )
 
-                    styleIconsPath = Utilities.fromNativeSeparators(styleIconsPath)
+                    styleIconsPath = FileSystemUtilities.fromNativeSeparators(
+                        styleIconsPath
+                    )
                     styleSheet = styleSheet.replace("${path}", styleIconsPath)
                     self.scrollAreaWidgetContents.setStyleSheet(styleSheet)
                 else:

eric ide

mercurial