src/eric7/WebBrowser/GreaseMonkey/GreaseMonkeyConfiguration/GreaseMonkeyConfigurationListDelegate.py

branch
eric7
changeset 9413
80c06d472826
parent 9221
bf71ee032bb4
child 9473
3f23dbf37dbe
equal deleted inserted replaced
9412:45e7bb09c120 9413:80c06d472826
11 from PyQt6.QtCore import Qt, QSize, QRect 11 from PyQt6.QtCore import Qt, QSize, QRect
12 from PyQt6.QtGui import QFontMetrics, QPalette, QFont 12 from PyQt6.QtGui import QFontMetrics, QPalette, QFont
13 from PyQt6.QtWidgets import QStyle, QStyledItemDelegate, QApplication 13 from PyQt6.QtWidgets import QStyle, QStyledItemDelegate, QApplication
14 from PyQt6.QtWidgets import QStyleOptionViewItem 14 from PyQt6.QtWidgets import QStyleOptionViewItem
15 15
16 import UI.PixmapCache 16 from eric7.EricGui import EricPixmapCache
17 import Globals 17 from eric7 import Globals
18 18
19 19
20 class GreaseMonkeyConfigurationListDelegate(QStyledItemDelegate): 20 class GreaseMonkeyConfigurationListDelegate(QStyledItemDelegate):
21 """ 21 """
22 Class implementing a delegate for the special list widget for GreaseMonkey 22 Class implementing a delegate for the special list widget for GreaseMonkey
35 35
36 @param parent reference to the parent object (QObject) 36 @param parent reference to the parent object (QObject)
37 """ 37 """
38 super().__init__(parent) 38 super().__init__(parent)
39 39
40 self.__removePixmap = UI.PixmapCache.getIcon("greaseMonkeyTrash").pixmap( 40 self.__removePixmap = EricPixmapCache.getIcon("greaseMonkeyTrash").pixmap(
41 GreaseMonkeyConfigurationListDelegate.RemoveIconSize 41 GreaseMonkeyConfigurationListDelegate.RemoveIconSize
42 ) 42 )
43 self.__rowHeight = 0 43 self.__rowHeight = 0
44 self.__padding = 0 44 self.__padding = 0
45 45

eric ide

mercurial