eric7/UI/Previewers/PreviewerQSS.py

branch
eric7
changeset 8864
4a0f7105dbd8
parent 8859
64252c7bfb87
child 8880
4b631598f752
equal deleted inserted replaced
8863:03e7c23a05b1 8864:4a0f7105dbd8
13 from PyQt6.QtWidgets import ( 13 from PyQt6.QtWidgets import (
14 QWidget, QMenu, QLabel, QHeaderView, QListWidgetItem 14 QWidget, QMenu, QLabel, QHeaderView, QListWidgetItem
15 ) 15 )
16 16
17 from EricWidgets.EricPathPicker import EricPathPickerModes 17 from EricWidgets.EricPathPicker import EricPathPickerModes
18 from EricWidgets.EricApplication import ericApp
18 19
19 from .Ui_PreviewerQSS import Ui_PreviewerQSS 20 from .Ui_PreviewerQSS import Ui_PreviewerQSS
20 21
21 import Preferences 22 import Preferences
22 import UI.PixmapCache 23 import UI.PixmapCache
35 @param parent reference to the parent widget (QWidget) 36 @param parent reference to the parent widget (QWidget)
36 """ 37 """
37 super().__init__(parent) 38 super().__init__(parent)
38 self.setupUi(self) 39 self.setupUi(self)
39 40
41 styleIconsPath = ericApp().getStyleIconsPath()
40 self.styleIconsPathPicker.setMode( 42 self.styleIconsPathPicker.setMode(
41 EricPathPickerModes.DIRECTORY_SHOW_FILES_MODE) 43 EricPathPickerModes.DIRECTORY_SHOW_FILES_MODE)
44 self.styleIconsPathPicker.setDefaultDirectory(styleIconsPath)
42 45
43 self.__lastEditor = None 46 self.__lastEditor = None
44 47
45 # menu for the tool buttons 48 # menu for the tool buttons
46 self.__toolButtonMenu_1 = QMenu(self) 49 self.__toolButtonMenu_1 = QMenu(self)

eric ide

mercurial