eric7/UI/Previewers/PreviewerQSS.py

branch
eric7
changeset 8880
4b631598f752
parent 8864
4a0f7105dbd8
child 8881
54e42bc2437a
--- a/eric7/UI/Previewers/PreviewerQSS.py	Wed Dec 29 17:54:06 2021 +0100
+++ b/eric7/UI/Previewers/PreviewerQSS.py	Wed Dec 29 19:40:16 2021 +0100
@@ -20,6 +20,7 @@
 from .Ui_PreviewerQSS import Ui_PreviewerQSS
 
 import Preferences
+import Utilities
 import UI.PixmapCache
 
 from eric7config import getConfig
@@ -123,7 +124,9 @@
                             # icons directory
                             styleIconsPath = os.path.join(
                                 getConfig('ericIconDir'), "StyleIcons")
-                        
+                    
+                    styleIconsPath =  Utilities.fromNativeSeparators(
+                        styleIconsPath)
                     styleSheet = styleSheet.replace("${path}", styleIconsPath)
                     self.scrollAreaWidgetContents.setStyleSheet(styleSheet)
                 else:

eric ide

mercurial