11 |
11 |
12 from PyQt6.QtCore import pyqtSignal, pyqtSlot, Qt, QCoreApplication |
12 from PyQt6.QtCore import pyqtSignal, pyqtSlot, Qt, QCoreApplication |
13 from PyQt6.QtGui import QColor, QIcon, QCursor, QPalette |
13 from PyQt6.QtGui import QColor, QIcon, QCursor, QPalette |
14 from PyQt6.QtWidgets import QWidget, QBoxLayout, QWIDGETSIZE_MAX, QMenu |
14 from PyQt6.QtWidgets import QWidget, QBoxLayout, QWIDGETSIZE_MAX, QMenu |
15 |
15 |
16 from EricWidgets.EricApplication import ericApp |
16 from eric7.EricWidgets.EricApplication import ericApp |
17 |
17 |
18 from .EricClickableLabel import EricClickableLabel |
18 from .EricClickableLabel import EricClickableLabel |
19 |
19 |
20 import UI.PixmapCache |
20 from eric7.EricGui import EricPixmapCache |
21 |
21 |
22 |
22 |
23 class EricIconBar(QWidget): |
23 class EricIconBar(QWidget): |
24 """ |
24 """ |
25 Class implementing a bar widget showing just icons. |
25 Class implementing a bar widget showing just icons. |
263 if self.__orientation == Qt.Orientation.Horizontal: |
263 if self.__orientation == Qt.Orientation.Horizontal: |
264 self.__moreLabel.setFixedSize( |
264 self.__moreLabel.setFixedSize( |
265 int(self.__barSize * self.MoreLabelAspect), self.__barSize |
265 int(self.__barSize * self.MoreLabelAspect), self.__barSize |
266 ) |
266 ) |
267 self.__moreLabel.setPixmap( |
267 self.__moreLabel.setPixmap( |
268 UI.PixmapCache.getIcon("sbDotsH96").pixmap( |
268 EricPixmapCache.getIcon("sbDotsH96").pixmap( |
269 int(self.__barSize * self.MoreLabelAspect), self.__barSize |
269 int(self.__barSize * self.MoreLabelAspect), self.__barSize |
270 ) |
270 ) |
271 ) |
271 ) |
272 else: |
272 else: |
273 self.__moreLabel.setFixedSize( |
273 self.__moreLabel.setFixedSize( |
274 self.__barSize, int(self.__barSize * self.MoreLabelAspect) |
274 self.__barSize, int(self.__barSize * self.MoreLabelAspect) |
275 ) |
275 ) |
276 self.__moreLabel.setPixmap( |
276 self.__moreLabel.setPixmap( |
277 UI.PixmapCache.getIcon("sbDotsV96").pixmap( |
277 EricPixmapCache.getIcon("sbDotsV96").pixmap( |
278 self.__barSize, int(self.__barSize * self.MoreLabelAspect) |
278 self.__barSize, int(self.__barSize * self.MoreLabelAspect) |
279 ) |
279 ) |
280 ) |
280 ) |
281 |
281 |
282 self.__layout.addWidget(self.__moreLabel) |
282 self.__layout.addWidget(self.__moreLabel) |