--- 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: