22 ) |
22 ) |
23 |
23 |
24 from . import EricFileDialog |
24 from . import EricFileDialog |
25 from .EricCompleters import EricFileCompleter, EricDirCompleter |
25 from .EricCompleters import EricFileCompleter, EricDirCompleter |
26 |
26 |
27 import UI.PixmapCache |
27 from eric7.EricGui import EricPixmapCache |
28 |
28 |
29 |
29 |
30 class EricPathPickerModes(enum.Enum): |
30 class EricPathPickerModes(enum.Enum): |
31 """ |
31 """ |
32 Class implementing the path picker modes. |
32 Class implementing the path picker modes. |
108 ) |
108 ) |
109 self._editor.lineEdit().setClearButtonEnabled(True) |
109 self._editor.lineEdit().setClearButtonEnabled(True) |
110 |
110 |
111 self.__button = QToolButton(self) |
111 self.__button = QToolButton(self) |
112 self.__button.setToolButtonStyle(Qt.ToolButtonStyle.ToolButtonIconOnly) |
112 self.__button.setToolButtonStyle(Qt.ToolButtonStyle.ToolButtonIconOnly) |
113 self.__button.setIcon(UI.PixmapCache.getIcon("open")) |
113 self.__button.setIcon(EricPixmapCache.getIcon("open")) |
114 |
114 |
115 self.__layout.addWidget(self._editor) |
115 self.__layout.addWidget(self._editor) |
116 self.__layout.addWidget(self.__button) |
116 self.__layout.addWidget(self.__button) |
117 |
117 |
118 self.__button.clicked.connect(self.__showPathPickerDialog) |
118 self.__button.clicked.connect(self.__showPathPickerDialog) |